Skip to content

mtarnawa/openmailbox_downloader

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

openmailbox_downloader

Save a local copy of your openmailbox emails without using IMAP

Motivation

Today, in August 2017, openmailbox.org has changed its service by requiring people to pay for IMAP. No warning was given for this, and I have not been able to find a simple way to download all of my emails from the server.

How this tool works

This tool requires Python 3 and requests library. Make sure to install it either via pip by pip3 install -r requirements.txt, pip3 install requests or through package manager, e.g. in Ubuntu apt-get install python3-requests.

To use this tool, you need to log in to openmailbox's webmail.

Then, you will need to view the cookies that openmailbox has put on your computer. In particular, you will need to find the sessionid and the csrftoken.

Then, you need to run this command: ./uidextract.py <csrftoken> <sessionid> <mailbox> <lowerbound> <upperbound>

where csrftoken and sessionid are the two cookies you found earlier, mailbox is the folder you want to download from (usually 'INBOX') and lowerbound and upperbound are the lowest and highest number messages you want respectively.

Note that you can only download a maximum of 500 messages each time you run this script. So, if you have more than 500 messages in a folder, you will have to run in multiple times, changing the upperbound and lowerbound values on each run.

The saved emails will be in the folder emails_output_dir.

If the script gets interrupted, the script tries to start from where it left off so you don't have to redownload emails that you have already downloaded.

Examples

./uidextract.py eri17r6toiughw3rtg9bv3qcf8o34nqt9y n9o34yqto783bn34yrf3cyo834ytn843qtc3hvukerhgliurhgoi243 INBOX 1 500

Downloads the first 500 messages from INBOX

About

Save a local copy of your openmailbox emails without using IMAP

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%