I'm currently working on a batch migration process with the Java API and I am having a problem accounting for some messages.
I am using some of the code from the gdata samples for Mail Migration and using the MailItemFeed and BatchUtils. I can successfully migrate mail messages but I seem to have a discrepancy with some mailboxes where the number of messages reported back by summing the successful messages reported back from BatchUtils is more than what I see in the web interface with the "All Mail" label with conversations view off. I figure that should give me the total count of messages and should equal the number of successful messages posted via the API. Or am I wrong? I thought that it might have had something to do with duplicate message-ids being ignored or even exact duplicate messages (but in different folders) but that doesn't add up either. For some rough numbers, I attempted to migrate 76802 e-mail messages, The batchUtils reported 76695 successfully created The All Mail label showed 76373 This leaves a difference of 429 messages I can account for 107 of them as follows: 80 messages I filtered out because they contain "]]>" which seems to cause a Service Exception if I try to migrate a message that contains the closing for a CDATA, 27 had bad attachments, bad date headers, or some other 400 error code That leaves me with 322 messages that I don't know how to account for? Does anyone know if that has to do with some duplicate message detection. I tried smaller batches on folders that I found contained missing messages and at least on instance I had the exact same message in two folders and so in the web interface they appeared to just get two labels applied to that message. This makes sense but I went through and md5sum'ed all 76802 messages and only found 6 message that had the same md5sum. I went through and checked for duplicate message-ids but that number was well over 3000 which would seem too high for missing only 322 messages. Any suggestions? thanks -Tomas -- 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/-/Njg0SHZNVXpKaWdK. 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.
