Hi Emmanuel, You can retrieve all the messages from the "All Mail" folder via IMAP and use the X-GM-LABELS Gmail IMAP extension to find out what labels each message has. This means you'll only be grabbing each message once.
http://code.google.com/apis/gmail/imap/#x-gm-labels The only messages this won't get is whatever is in Trash or Spam, those you'll need to grab separately if you need them. Jay -- 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/-/5q_bw0ra3AkJ. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-apps-mgmt-apis?hl=en.
