No description, website, or topics provided.
Ruby
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib/mailbag
test
Gemfile
Gemfile.lock
README.md
Rakefile

README.md

Mailbag

Gmail backup to S3.

Setup

Requires running your own Heroku cron daemon.

Clone the app

$ git clone https://github.com/josh/mailbag.git
$ cd mailbag/

Create a Heroku app

$ heroku create
$ git push heroku master

Configure S3 settings.

$ heroku config:set AMAZON_ACCESS_KEY_ID=abc
$ heroku config:set AMAZON_SECRET_ACCESS_KEY=123
$ heroku config:set AMAZON_BUCKET=foo-mail-backup

Configure IMAP settings.

$ heroku config:set IMAP_ADDRESS=imap.gmail.com
$ heroku config:set IMAP_USERNAME=example@gmail.com
$ heroku config:set IMAP_PASSWORD=secret

Configure a daily cron schedule.

$ heroku addons:add scheduler:standard
$ heroku addons:open scheduler