Cyberes e933dfd361 | ||
---|---|---|
iarchiver | ||
iviewer | ||
systemd | ||
templates | ||
.gitignore | ||
LICENSE | ||
README.md | ||
archiver.py | ||
config.yml.sample | ||
requirements.txt | ||
server.py |
README.md
imap-archiver
Archive the content on your email account.
A very simple way to sync your email account with the goal of backing up all your emails.
Saves attachments to disk and stores the emails in an SQLite database.
A very simple web viewer is provided to view your raw emails.
Does not support different accounts.
Install
Archiver
- Create a venv
pip install -r requirements.txt
cp config.yml.sample config.yml
- Edit
config.yml
and configure your login info. python3 archiver.py
Viewer
sudo mkdir /etc/secrets
sudo chown -R root:root /etc/secrets
- Generate your password:
echo -n "<your password>" | base64
- Edit
/etc/secrets/imapviewer
with this content:HTTP_AUTH_PASS=<your encoded password> EMAIL_ARCHIVE_ROOT=<archive root path>
sudo chmod 600 /etc/secrets/imapviewer
- Reload and start the service.
Sample systemd services file is included.
To Do
- Fix subject decoding. Some character sets aren't detected correctly.
- In the viewer, format the raw email to something viewable.