API to receive all email messages?

240 views
Skip to first unread message

Michael Gawrychowski

unread,
Apr 18, 2012, 4:34:22 PM4/18/12
to google-app...@googlegroups.com
Hi, I'm working on a project that will pull all messages from the ALL MAIL folder in Gmail. Is there any API to do that? I used imap to access the mailbox but for large folders the process timeouts after 45mins so it would be great if it was an API for this. 


Thanks
Michael G. 

Claudio Cherubino

unread,
Apr 18, 2012, 4:38:32 PM4/18/12
to google-app...@googlegroups.com
Hi Michael,

Gmail doesn't expose a dedicated API but, as you already know, it supports the standard IMAP protocol:


Perhaps you can rely on sending multiple requests instead of a single one that might take a lot of time.

Claudio

--
You received this message because you are subscribed to the Google Groups "Google Apps Domain Information and Management APIs" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-apps-mgmt-apis/-/GihH93ERHMEJ.
To post to this group, send email to google-app...@googlegroups.com.
To unsubscribe from this group, send email to google-apps-mgmt...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-apps-mgmt-apis?hl=en.

Cooper Marcus

unread,
Apr 18, 2012, 4:48:26 PM4/18/12
to google-app...@googlegroups.com
Also consider Context.IO - not a Google product, but a very helpful API for email that works great with Gmail.

Michael Gawrychowski

unread,
Apr 18, 2012, 7:49:09 PM4/18/12
to google-app...@googlegroups.com
Hi Claudio, I found some information about the Audit Api and it looks like it allows to download the whole mailbox. Would it be possible to download all messages then and process them on a local machine? 

Claudio Cherubino

unread,
Apr 19, 2012, 12:30:11 AM4/19/12
to google-app...@googlegroups.com
Hi Michael,

It is technically possible, but please note that the Email Audit API can only be used for legal compliance.
I'm not a lawyer, but I'd recommend to ask one before using that API for any other reason.

Claudio

Michael Gawrychowski

unread,
Apr 19, 2012, 9:33:15 AM4/19/12
to google-app...@googlegroups.com
Hello Cooper, do you have an idea what do they use to pull the messages? Do they use standard IMAP or any Googe APIs? 


On Wednesday, April 18, 2012 4:48:26 PM UTC-4, Cooper wrote:
Also consider Context.IO - not a Google product, but a very helpful API for email that works great with Gmail.

On Wed, Apr 18, 2012 at 1:38 PM, Claudio Cherubino <ccher...@google.com> wrote:
Hi Michael,

Gmail doesn't expose a dedicated API but, as you already know, it supports the standard IMAP protocol:


Perhaps you can rely on sending multiple requests instead of a single one that might take a lot of time.

Claudio


On Wed, Apr 18, 2012 at 1:34 PM, Michael Gawrychowski <mic...@gawrychowski.com> wrote:
Hi, I'm working on a project that will pull all messages from the ALL MAIL folder in Gmail. Is there any API to do that? I used imap to access the mailbox but for large folders the process timeouts after 45mins so it would be great if it was an API for this. 


Thanks
Michael G. 

--
You received this message because you are subscribed to the Google Groups "Google Apps Domain Information and Management APIs" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-apps-mgmt-apis/-/GihH93ERHMEJ.
To post to this group, send email to google-apps-mgmt-apis@googlegroups.com.
To unsubscribe from this group, send email to google-apps-mgmt-apis+unsub...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/google-apps-mgmt-apis?hl=en.

--
You received this message because you are subscribed to the Google Groups "Google Apps Domain Information and Management APIs" group.
To post to this group, send email to google-apps-mgmt-apis@googlegroups.com.
To unsubscribe from this group, send email to google-apps-mgmt-apis+unsub...@googlegroups.com.

Michael Gawrychowski

unread,
Apr 19, 2012, 9:35:20 AM4/19/12
to google-app...@googlegroups.com
Hi Claudio,
I'm looking for a technical way to achieve the result. Can you think of any other way of accessing the mailbox without using IMAP? I found some information about Gmail APi but it looks like it allows to pull only the UNREAD messages. 

M. 


On Thursday, April 19, 2012 12:30:11 AM UTC-4, Claudio Cherubino wrote:
Hi Michael,

It is technically possible, but please note that the Email Audit API can only be used for legal compliance.
I'm not a lawyer, but I'd recommend to ask one before using that API for any other reason.

Claudio

On Wed, Apr 18, 2012 at 4:49 PM, Michael Gawrychowski <mic...@gawrychowski.com> wrote:
Hi Claudio, I found some information about the Audit Api and it looks like it allows to download the whole mailbox. Would it be possible to download all messages then and process them on a local machine? 

On Wed, Apr 18, 2012 at 4:38 PM, Claudio Cherubino <ccher...@google.com> wrote:
Hi Michael,

Gmail doesn't expose a dedicated API but, as you already know, it supports the standard IMAP protocol:


Perhaps you can rely on sending multiple requests instead of a single one that might take a lot of time.

Claudio


On Wed, Apr 18, 2012 at 1:34 PM, Michael Gawrychowski <mic...@gawrychowski.com> wrote:
Hi, I'm working on a project that will pull all messages from the ALL MAIL folder in Gmail. Is there any API to do that? I used imap to access the mailbox but for large folders the process timeouts after 45mins so it would be great if it was an API for this. 


Thanks
Michael G. 

--
You received this message because you are subscribed to the Google Groups "Google Apps Domain Information and Management APIs" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-apps-mgmt-apis/-/GihH93ERHMEJ.
To post to this group, send email to google-apps-mgmt-apis@googlegroups.com.
To unsubscribe from this group, send email to google-apps-mgmt-apis+unsub...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/google-apps-mgmt-apis?hl=en.

--
You received this message because you are subscribed to the Google Groups "Google Apps Domain Information and Management APIs" group.
To post to this group, send email to google-apps-mgmt-apis@googlegroups.com.
To unsubscribe from this group, send email to google-apps-mgmt-apis+unsub...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/google-apps-mgmt-apis?hl=en.

--
You received this message because you are subscribed to the Google Groups "Google Apps Domain Information and Management APIs" group.
To post to this group, send email to google-apps-mgmt-apis@googlegroups.com.
To unsubscribe from this group, send email to google-apps-mgmt-apis+unsub...@googlegroups.com.

Claudio Cherubino

unread,
Apr 19, 2012, 12:16:47 PM4/19/12
to google-app...@googlegroups.com
Hi Michael,

Our recommendation is to use IMAP, I can't think of a better approach that doesn't use IMAP.

Claudio

To view this discussion on the web visit https://groups.google.com/d/msg/google-apps-mgmt-apis/-/6h5noI57Iu4J.

To post to this group, send email to google-app...@googlegroups.com.
To unsubscribe from this group, send email to google-apps-mgmt...@googlegroups.com.

Michael Gawrychowski

unread,
Apr 19, 2012, 12:28:44 PM4/19/12
to google-app...@googlegroups.com
Ok, thank you.

Best Regards

Mally Mclane

unread,
Apr 19, 2012, 12:44:03 PM4/19/12
to google-app...@googlegroups.com

Michael,

Don't forget that Google have hard limits on Imap usage.

Mally

Cooper Marcus

unread,
Apr 19, 2012, 6:24:56 PM4/19/12
to google-app...@googlegroups.com
OAUTH IMAP I believe - but I encourage you to ask them - they are very accessible, and nice people too! Say Hi to Sarah Jane for me  ; )

To view this discussion on the web visit https://groups.google.com/d/msg/google-apps-mgmt-apis/-/L-j_m38G4dQJ.

To post to this group, send email to google-app...@googlegroups.com.
To unsubscribe from this group, send email to google-apps-mgmt...@googlegroups.com.

Jerry Wang

unread,
Jul 30, 2012, 3:55:24 AM7/30/12
to google-app...@googlegroups.com
Hi Claudio, 
Standard IMAP protocol works well for get all personal emails.
My question is : How can a Google Apps Domain use to access other users' email by IMAP (or other protocol)? 
I Google this for quite some time, still get no clue. Please help. Thanks.

On Thursday, April 19, 2012 4:38:32 AM UTC+8, Claudio Cherubino wrote:
Hi Michael,

Gmail doesn't expose a dedicated API but, as you already know, it supports the standard IMAP protocol:


Perhaps you can rely on sending multiple requests instead of a single one that might take a lot of time.

Claudio

On Wed, Apr 18, 2012 at 1:34 PM, Michael Gawrychowski <mic...@gawrychowski.com> wrote:
Hi, I'm working on a project that will pull all messages from the ALL MAIL folder in Gmail. Is there any API to do that? I used imap to access the mailbox but for large folders the process timeouts after 45mins so it would be great if it was an API for this. 


Thanks
Michael G. 

--
You received this message because you are subscribed to the Google Groups "Google Apps Domain Information and Management APIs" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-apps-mgmt-apis/-/GihH93ERHMEJ.
To post to this group, send email to google-apps-mgmt-apis@googlegroups.com.
To unsubscribe from this group, send email to google-apps-mgmt-apis+unsub...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages