Skip to main content

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

proton_mail_export_organizer-0.3.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

proton_mail_export_organizer-0.3-py2.py3-none-any.whl (3.9 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file proton_mail_export_organizer-0.3.tar.gz.

File metadata

File hashes

Hashes for proton_mail_export_organizer-0.3.tar.gz
Algorithm Hash digest
SHA256 2772c1416d0d51742e27f7c891abc774e9a5c07b20ef4b0792f2b5dcf4e090de
MD5 830fb25f314e5ce02cba6637980a6fd7
BLAKE2b-256 28d21452b8053d061aa8943e98f28be5caf79f8ed86f7199884b1dbd0289f269

See more details on using hashes here.

File details

Details for the file proton_mail_export_organizer-0.3-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for proton_mail_export_organizer-0.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 a5126bd196c122c5744257fa13814cec60eb9f233a185b4c4bdbe8825ef73287
MD5 15195b4d530dcd3899c12fea12675377
BLAKE2b-256 edbc41cd139ad0673b93cc134c15727bb9b3d5c28f9e658a6e83b3d2419b6899

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page