Integrate Piler with Google Apps Free Edition

Issue #23 resolved
Gergely Kis created an issue

A major drawback of the Google Apps Free Edition is that there is no way to centrally back up emails.

Piler could be used as a solution to this problem with the following enhancements: * Use IMAP as the primary email input (opposed to SMTP) (Separate IMAP connection for each user) * Support Google OAUTH authentication. User accounts could be provisioned automatically on first login. * Once the user logged in with Google Auth, his emails can be accessed over IMAP with OAUTH authentication. (This method is used by the SMS Backup + tool on Android, source is available here: https://github.com/jberkel/sms-backup-plus)

Comments (7)

  1. Janos SUTO repo owner

    OK, the IMAP polling seems possible. However do you mean that after the user logs in then piler should download, and archive the messages real time? Or is it possible to save a token or alike when the user logs in, then later use that token to periodically download and archive his messages?

  2. Janos SUTO repo owner

    I've made some progress. You can get an access token by OAuth2, and I was able to retrieve my emails.

    The plan is that when a user logs in the first time, then he's added to the piler database, and the access token is recorded with the refresh token. Then it's possible to run a periodic polling to download and archive new emails. I'll also note the latest retrieved messaged id, then I can continue downloading+archiving only the new messages.

  3. Log in to comment