Re: Folder.copyMessages
remi__ <[email protected]> Thu, 31 May 2007 08:29:18 -0700 (PDT)
| Newsgroups | gmane.comp.java.classpath.extensions.javamail |
|---|---|
| Message-ID | <[email protected]> |
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 ...
Rémi
Chris Burdess-2 wrote:
>
> remi__ wrote:
>> OK, so now I have that one :
>>
>> java.lang.IndexOutOfBoundsException: Index: 3, Size: 3
>> at java.util.ArrayList.RangeCheck(ArrayList.java:507)
>> at java.util.ArrayList.get(ArrayList.java:324)
>> at gnu.mail.providers.imap.IMAPMessage.update(IMAPMessage.java:247)
>> at gnu.mail.providers.imap.IMAPFolder.fetch(IMAPFolder.java:843)
>> at gnu.mail.providers.imap.IMAPFolder.copyMessages(IMAPFolder.java:
>> 698)
>> at TestDeplacementMailGNU112.moveMail
>> (TestDeplacementMailGNU112.java:63)
>> at TestDeplacementMailGNU112.test(TestDeplacementMailGNU112.java:47)
>> at TestDeplacementMailGNU112.main(TestDeplacementMailGNU112.java:31)
>
> Could you provide a TCP dump using something like tcpflow? Obviously
> strip out any authentication details etc. The status code should
> never be odd-sized.
>
>
> _______________________________________________
> Classpathx-javamail mailing list
> [email protected]
> http://lists.gnu.org/mailman/listinfo/classpathx-javamail
>
>
--
View this message in context: http://www.nabble.com/Folder.copyMessages-tf3845701.html#a10896245
Sent from the classpathx-javamail mailing list archive at Nabble.com.