I just re-read your original message and thought of something else. Gmail
filters out duplicate emails (determined by the Message-id: header field) so
if you upload the same message twice for some reason it will only appear
once in All Mail, which will skew your numbers. You'll need to keep track of
the message ids for messages you upload and make sure you're not
double-counting.

You'd think this wouldn't come up often but it does, particularly with
mailing lists - a user might post to a list (copy of message in Sent) and
then receive a copy from the list (in the inbox or filtered to a folder).

  I would imagine that since I am working as a domain admin and with
> accounts with those privileges I would be able to change any of the above
> settings via an API call as well to get around such things but I don't think
> that will be necessary but something to think about.
>

Unfortunately there's no way to change or override the "hide label from
IMAP" settings. This thread reminded me that I've been meaning to log an
issue about it, which I did yesterday:
http://code.google.com/a/google.com/p/apps-api-issues/issues/detail?id=2599


>   I've never really dealt with IMAP via java but I suppose I can look into
> it.  I was really thinking that there would be a simple way to do this via
> existing API calls.  I'm trying to work this all into a semi-automated java
> application that will run on our e-mail messages store against directories
> output in maildir format via offlineImap.


I'd be very surprised if Java doesn't have an IMAP client library. The only
tricky bit is sorting out the OAuth stuff, since you need an OAuth
implementation that is suitably decoupled from the HTTP requests. It looks
like Google already have a sample available, though I can't comment on its
usefulness:

http://code.google.com/apis/gmail/oauth/code.html

I wrote an example for Perl a while back, since that's the language I work.
I suppose it won't be particularly useful, but the structure might reveal
some clues if you're struggling:

http://eatenbyagrue.org/its_like_a_swipe_card_for_aliens.html

Cheers,
Rob.

-- 
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 [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.

Reply via email to