A solution for widowers of Gspace

If you like me was user of gspace Firefox plugin and noticed it stopped working many years ago, don’t worry, you can recover your files from your gmail account.

First step configure your gmail account to email download POP3 for all messages and install and configure getmail program to download your emails. It is very well explained here:


Then create a directory /home/user/.getmail:

$ mkdir /home/user/.getmail
$ cd /home/user/.getmail

Of course you need to replace “user” by your username.

Then create a file getmail.gmail inside this directory with this content:

type = SimpleIMAPSSLRetriever
server = imap.gmail.com
username = username@gmail.com
password = yourpassword
mailboxes = ("Inbox",)

type = Mboxrd
path = /home/user/gmail-backup.mbox

# print messages about each action (verbose = 2)
# Other options:
# 0 prints only warnings and errors
# 1 prints messages about retrieving and deleting messages only
verbose = 2
message_log = ~/.getmail/gmail.log

You need to create the gmail-backup.mbox file before running getmail:

$ touch /home/user/gmail-backup.mbox

Now finally you can run it:

$ getmail -r /home/user/.getmail/getmail.gmail

After you got all your emails, you could use mbox-extract-attachments.py python script to extract all attachments from your gmail-backup.mbox this way:

$ mkdir temp
$ ./mbox-extract-attachments.py gmail-backup.mbox temp/

That’s all folks!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s