Re: Folder.copyMessages
Chris Burdess <[email protected]> Thu, 31 May 2007 16:44:45 +0100
| Newsgroups | gmane.comp.java.classpath.extensions.javamail |
|---|---|
| Message-ID | <[email protected]> |
remi__ wrote:
> It works with that implementation in IMAPFolder:
>
> public void copyMessages(Message[] msgs, Folder folder)
> throws MessagingException
> {
> if (!folder.exists())
> {
> throw new FolderNotFoundException("Folder does not exist",
> folder);
> }
> if (folder instanceof IMAPFolder &&
> ((IMAPFolder) folder).store.equals(store))
> {
> folder.appendMessages(msgs);
> }
> else
> {
> super.copyMessages(msgs, folder);
> }
> }
>
> No fetch ...
Yep, I already updated with a version that doesn't do the RFC822
fetch. I was just interested in trying to find out why that fetch
didn't succeed, it's a different problem.