Backing up Gmail Using Mail, Automator and iCal
From Mac Guides
This guide provides an easy way to back up mail from your Gmail account by creating an account within Mail for easy searching, using Automator to create a workflow that will retrieve Mail, and using iCal to manage a timeframe to perform the Automator workflow.
Before beginning, note the following:
- This method backs up all mail within your Gmail account (sent, received, archived), except Drafts.
- This method does not organize your backed up mail the way Gmail stores it. This is because all labels and other information (such as whether the message is a sent message or a received message) are not transmitted over POP servers and remain tied to your Gmail settings.
- This method assumes that you do not employ Mail as their primary e-mail client. For those that do, this method may or may not be functional for you, especially if you use Gmail via POP access.
Enabling POP Access within Gmail
- Login to your Gmail account
- Click "Settings" in the upper right hand corner
- Select the "Forwarding and POP" tab
- Click the radio button titled "Enable POP for all mail"
- For the "When messages are accessed with POP" option, select "Keep Gmail's copy in the inbox" *
- Click "Save Changes"
*This is important; otherwise when you download the mail via POP, it will remove them from your Gmail inbox.
Setting up an account in Mail
- Launch Mail
- Go to Mail > Preferences
- Click the "+" icon in the bottom left corner to create a new account
- Under "General Information", enter the following:
Account Type: POP
Account Description: Gmail backup
Full Name: your name
Email Address: your gmail address
- Click "Continue"
- Under "Incoming Mail Server", enter the following:
Incoming Mail Server: pop.gmail.com
Password: your Gmail account password
- Click "Continue". It will now verify what you have entered
- Under "Outgoing Mail Server", leave as default, as this is only for backing up purposes and you will not be sending messages from here. Click "Continue"
- Click "Continue" again at the summary page, and click "Done" at the next page
- Select the account you just created under the "Accounts" menu
- Select the "Advanced" tab and uncheck "Remove copy from server after retrieving a message"
- Close the Preferences window, making sure to save changes
Setting up an Automator workflow
- Launch Automator
- In the Applications list, select Mail
- Drag the "Get New Mail" action to the right.
- Change the action's "For" property to the backup account you just created
- Choose File > Save as Plug-in
- Enter any name you like and set "Plug-in for" to "iCal Alarm"
- Click "Save" and wait for iCal to launch, as it will perform the action immediately. To set up a schedule, see the next section.
Setting up an iCal Schedule
- Select the event created from Automator
- Find the "repeat" option in the Info area and select "Custom"
- Select the scheduling as you see fit
- Click "OK"
That's it! It should now perform the mail retrieval at the time frame you just established. To ensure the iCal alarm functions when iCal is closed:
- Open iCal
- Go to iCal > Preferences > Advanced
- Uncheck "Turn off alarms when iCal is not open"