Tool to sort emails from a proton-mail-export directory into folders.
Project description
Proton mail export organizer
This is a tool to sort emails from a proton-mail-export directory into folders.
I used it to import my proton-mail-export into thunderbird using ImportExportTools NG.
Quick usage
The program only takes a single parameter: the export directory, so:
- First run proton-mail-export-cli to download your emails.
- It should create a directory like
username@protonmail.com/mail_YYYYMMDD_HHMMSS/
. pip install proton-mail-export-organizer
proton-mail-export-organizer username@protonmail.com/mail_YYYYMMDD_HHMMSS
(Replace the username and date to match your export).
You're done, your emails has been ordered in a hierarchy that should match the one you had in Protonmail.
I'm not happy with the result
It works for me.
But I bet we're not all using emails the same way. Feel free to doodle around with the code.
You can run it multiple times to see the effect of your changes in the hierarchy.
The only thing that may be surprising is that I do not delete empty directories if all emails are moved out of them.
If you're happy with your changes, don't hesitate to open a PR.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file proton_mail_export_organizer-0.2.tar.gz
.
File metadata
- Download URL: proton_mail_export_organizer-0.2.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c3601116c35f36b8074b0d0aa9a2a53207a9a3bd03e07b2dc126851cac6728db |
|
MD5 | 20fef42f897c5f0d1c61255fbb78ac65 |
|
BLAKE2b-256 | b290c6d75a038dfbdd12dd244fb4c66456a6b5c3ef80db53a0e532ba3631f5e6 |
File details
Details for the file proton_mail_export_organizer-0.2-py2.py3-none-any.whl
.
File metadata
- Download URL: proton_mail_export_organizer-0.2-py2.py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f7c075360d295cd966bb566d58351f4d515963e1f31284b1bc22f7586355f766 |
|
MD5 | 5f3fa3cc7ff4783181eaee90034d4c90 |
|
BLAKE2b-256 | d4795feeacc0220c85d2953b0fc559bea5707ac077c76f51f3e84c99ff49eb4d |