Posted: May 29, 2011 21:14 by jimir
according to Googles API for fetching "global" gmail msgid's as specified here:
it is required to fetch "X-GM-MSGID".
After looking into the code it seams that using a FetchProfile is the best match when e.g. doing a "folder.fetch(msgs, fp)", but how do I add my own FetchProfile.Item to support fetching the above msgid ?
In javamail version 1.4.4 of class IMAPMessage it seems like the FetchProfile.Item's are used and that there is no "generic" way of adding new ones, is that correct? If so, what is the best way to proceed? Extend IMAPMessage and override methods?
I hope someone can help.