This project uses the Got-Your-Back script as the core to help you to migrate all users's emails from old domain to the new one in Google App.
- Use condition number
- Use emails folder input
- Get error users when enabling IMAP
- Enable IMAP for all users (only need to do this on old domain)
- Backup emails
- Restore emails
- Delete emails folder
- Migrate emails of all users to new domain
- gdata==2.0.18
- google-api-python-client==1.2
- httplib2==0.8
- pyOpenSSL==0.13.1
- uritemplate==0.6
- gyb==0.20a
username@user-host:/path/to/gem$ virtualenv /home/.venv/your_env
username@user-host:/path/to/gem$ source /home/.venv/your_env/bin/activate
(your_env)username@user-host:/path/to/gem$ pip install -r requirements.txt
(your_env)username@user-host:/path/to/gem$ ./enable_imap.py /path/to/username_list.csv
- username_list.csv (one username per line):
username1 |
username2 |
username3 |
(your_env)username@user-host:/path/to/gem$ python gem.py /path/to/email_mapping_list.csv /path/to/emails/folder
- email_mapping_list.csv (2 columns: src - old domain email address, dest - new domain email address):
src | dest |
---|---|
username1@olddomain.com | username1@newdomain.com |
username2@olddomain.com | username2@newdomain.com |
username3@olddomain.com | username3@newdomain.com |
- condition number: all posible numbers are:
0,1,2,3,4,5,6,7,8,9 or 'all'
- [0] https://code.google.com/p/got-your-back/wiki/GettingStarted
- [1] https://developers.google.com/admin-sdk/email-settings/
- [2] https://gdata-python-client.googlecode.com/hg/pydocs/gdata.apps.emailsettings.client.html
- Email: dangtrinhnt[at]gmail[dot]com
- Twitter: @dangtrinhnt