Difference between revisions of "PyThunderbird"

From BITPlan Wiki
Jump to navigation Jump to search
Line 16: Line 16:
 
How can this setup be accessed with Python?
 
How can this setup be accessed with Python?
 
{{pip|pyThunderbird}}
 
{{pip|pyThunderbird}}
 +
= Configuration =
 +
== $HOME/.thunderbird.yaml ==
 +
The yaml file has two entries per user
 +
<source lang='yaml'>
 +
joe:
 +
  db: /Users/joe/Library/Thunderbird/Profiles/klm97bfn.default/gloda.sqlite
 +
  profile: /Users/wf/Library/Thunderbird/Profiles/klm97bfn.default
 +
kathy:
 +
  db: /Users/kathy/Library/Thunderbird/Profiles/war97k3r.default/gloda.sqlite
 +
  profile: /Users/kathy/Library/Thunderbird/Profiles/war97k3r.default
 +
</source>
  
 
= Relevant Libraries =
 
= Relevant Libraries =

Revision as of 08:52, 23 November 2023

OsProject

OsProject
edit
id  pyThunderbird
state  active
owner  WolfgangFahl
title  pyThunderbird
url  https://github.com/WolfgangFahl/pyThunderbird
version  0.0.10
description  
date  2021-10-15
since  2020-10-24
until  

Motivation

Thunderbird uses mailbox format and an sqlite database for keeping track of the mails. How can this setup be accessed with Python?


Installation

pip install pyThunderbird
# alternatively if your pip is not a python3 pip
pip3 install pyThunderbird 
# local install from source directory of pyThunderbird 
pip install .

upgrade

pip install pyThunderbird  -U
# alternatively if your pip is not a python3 pip
pip3 install pyThunderbird -U

Configuration

$HOME/.thunderbird.yaml

The yaml file has two entries per user

joe:
  db: /Users/joe/Library/Thunderbird/Profiles/klm97bfn.default/gloda.sqlite
  profile: /Users/wf/Library/Thunderbird/Profiles/klm97bfn.default
kathy:
  db: /Users/kathy/Library/Thunderbird/Profiles/war97k3r.default/gloda.sqlite
  profile: /Users/kathy/Library/Thunderbird/Profiles/war97k3r.default

Relevant Libraries

Links