Skip to main content
Help us improve Python packaging – donate today!

Gmail Backup

Project Description

# Gmail Backup

This is a small command-line tool that backs up your Gmail.
It downloads your email messages as [RFC822]( format *.eml text files, which are compatible with most email clients.

## Installation

This requires Python 2.7.
You can install dependencies using this command:

pip install gmailbackup

## Command Line Usage

Download all email messages into the "email" directory:

./ -u <username> -p <password>

Download all email messages labeled "foo" and "bar" into their own subdirectories under "mydir":

./ -u <username> -p <password> -l foo,bar -o mydir

## Python Usage

To get started, use the `GmailClient` class in a `with` statement, authenticate it, then iterate any mailbox (label) you'd like.
The `GmailClient` is a simple wrapper around the IMAP4 client.

from gmailbackup import GmailClient

with GmailClient() as client:
client.authentiate('', 'mypassword')
client.save_mailbox('Some Label', 'path/to/downloads')

Release history Release notifications

This version
History Node


History Node


History Node


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
gmailbackup-1.0.2-cp27-none-macosx_10_10_x86_64.whl (3.3 kB) Copy SHA256 hash SHA256 Wheel 2.7 Sep 18, 2015
gmailbackup-1.0.2.tar.gz (2.4 kB) Copy SHA256 hash SHA256 Source None Sep 18, 2015

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page