Fetch emails from a mailbox and store them in a db.
Attachments are extracted and stored as separate files for simplified browsing and space efficiency.
python -m venv env
source env/bin/activate
pip install -r requirements.txt
[DEFAULT]
server = imap.gmail.com
username = user
password = pass
- use logging for info and debug
- use argparse to route between config, bootstrap, and run stages
- config opt to switch between db backends
- testing
- use classes
docker-compose exec mail bash
cd /srv/mail/testuser/Mail/mailboxes/INBOX/dbox-Mails