Coder Social home page Coder Social logo

pythunderbird's Introduction

pyThunderbird

python based access to Thunderbird mail

Documentation Status pypi Github Actions Build PyPI Status Downloads GitHub issues GitHub closed issues License

Demo

Demo

Home page grafik Search grafik Mail display grafik

Installation

pip install pyThunderbird

Get Sources

git clone https://github.com/WolfgangFahl/pyThunderbird
cd pyThunderbird
scripts/install

Testing

scripts/test

Documentation

Wiki

Authors

pythunderbird's People

Contributors

wolfgangfahl avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

pythunderbird's Issues

fix codec issues

'utf-8' codec can't decode byte 0xdf in position 25: invalid continuation byte
Traceback (most recent call last):
File "tb_webserver.py", line 156, in get_mail
mail = Mail(user=user, mailid=mailid, tb=tb, debug=self.debug)
File "mail.py", line 947, in init
self.extract_message()
File "mail.py", line 976, in extract_message
rawPart = part_str.decode(charset)

Get Message by user and id

given the id of a message (headerMessageID) and a user id retrieve the corresponding Mail

  • lookup the profile of the user as outlined in #2
  • query the global-messages-db.sqlite for the folder
  • retrieve the message

ImportError: cannot import name 'Markup' from 'flask'

after running the WebServer by python thunderbird/webserver.py
ImportError: cannot import name 'Markup' from 'flask'

Here are the dependencies:

APScheduler==3.10.4
blinker==1.7.0
Bootstrap-Flask==2.3.2
certifi==2023.11.17
charset-normalizer==3.3.2
click==8.1.7
contourpy==1.2.0
cycler==0.12.1
dicttoxml2==2.1.0
Flask==3.0.0
Flask-Dropzone==1.6.0
Flask-HTTPAuth==4.8.0
Flask-Login==0.6.3
Flask-SQLAlchemy==3.1.1
Flask-WTF==1.2.1
fonttools==4.45.0
ftfy==6.1.3
greenlet==3.0.1
idna==3.4
isodate==0.6.1
itsdangerous==2.1.2
Jinja2==3.1.2
jsonpickle==1.5.2
kiwisolver==1.4.5
MarkupSafe==2.1.3
matplotlib==3.7.4
numpy==1.26.2
packaging==23.2
pandas==2.1.3
Pillow==10.1.0
pydevd==2.10.0
PyDispatcher==2.0.7
pyFlaskBootstrap4==0.6.1
Pygments==2.17.2
pylatexenc==2.10
pyLodStorage==0.4.14
pyparsing==3.1.1
python-dateutil==2.8.2
pyThunderbird @ file:///home/tobias/tmp/pyThunderbird/pyThunderbird
pytz==2023.3.post1
PyYAML==6.0.1
rdflib==7.0.0
requests==2.31.0
six==1.16.0
SPARQLWrapper==1.8.5
SQLAlchemy==2.0.23
SQLAlchemy-Utils==0.41.1
tabulate==0.9.0
typing_extensions==4.8.0
tzdata==2023.3
tzlocal==5.2
urllib3==2.1.0
wcwidth==0.2.12
Werkzeug==3.0.1
WTForms==3.1.1

Given a user id lookup the thunderbird profile

use a yaml file for configuration

#
# Thunderbird profiles mapping 
#
wf:
  db: /Users/wf/backup/global-messages-db.sqlite
  profile: /Users/wf/Library/Thunderbird/Profiles/mxz53xfn.default

Search through thunderbird mails

What I want to do:
I need a python access to my Thunderbird mails. I want to search for specific contents and mail addresses. The description in the readme suggests that this is the purpose of this package.

What I already did
I tried to access Thunderbird-class. Unfortunately, this class needs a .thunderbird.yaml in the home directory.
I have no idea about the content of this file. Could you provide a template?
Also I do not know which db to pass.
Then, how do I search through the mails?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.