As soon as a mailbox is connected, we create a metadata index of its content starting from the most recent emails which become available from the API within seconds.
You simply add a "connect my mailbox" button to your app and we'll do the rest.
Control the user flow and simply call our API to create accounts and sources under these accounts.
We support OAuth as the preferred way to connect Gmail and Google Apps mailboxes. You can even use your own Google OAuth consumer to make sure users authorize your app explicitly.