Skip to content

Instantly share code, notes, and snippets.

@morhekil
Created November 2, 2014 05:32
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save morhekil/b91785052e8f20af838b to your computer and use it in GitHub Desktop.
Save morhekil/b91785052e8f20af838b to your computer and use it in GitHub Desktop.
How to fetch, download and save locally Guerrilla Mail inbox

Guerrilla Mail keeps all incoming emails for only an hour, so if you can't check in on your inbox for a while - the emails will be lost. A way around would be, of course, to periodically fetch and store emails locally.

There's a python client that automates low level operations for GM (list emails, get an email), so it's easy to add another command to it to combine list and get commands together, to get all emails and save them into files.

Here is a patch that adds the command, using it is easy:

$ mkdir inbox
$ while true; do python guerrillamail.py getall inbox && sleep 60; done

It will keep checking inbox every minute, and save all incoming emails into inbox directory.

Have fun.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment