Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

"UID fetch 1:*" vs. "FETCH 1:285 (UID)"

843834Mar 10 2009 — edited Mar 11 2009
Hi there

First of all: is there any difference (apart from the syntax) between both commands? I was told that the first one should be faster but I don't get JavaMail to send this command. Maybe I'm doing wrong. In principle I am using the following code:
IMAPFolder fz = (IMAPFolder) zStore.getDefaultFolder().getFolder("inbox");
	        
fz.open(Folder.READ_ONLY);
Message[] msgs = fz.getMessages();

FetchProfile fp = new FetchProfile();
fp.add(UIDFolder.FetchProfileItem.UID);

fz.fetch(msgs, fp);
Does JavaMail have the capability to send the UID FETCH command at all? I mean, is it supported?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 8 2009
Added on Mar 10 2009
2 comments
179 views