Le 28 avr. 06 à 10:52, Chris Burdess a écrit :
Cedric Hyppolite wrote:
The exact stack trace is:
java.lang.ClassCastException
at gnu.mail.providers.imap.IMAPBodyPart.update(IMAPBodyPart.java:
189)
at gnu.mail.providers.imap.IMAPBodyPart.fetch(IMAPBodyPart.java:129)
at gnu.mail.providers.imap.IMAPBodyPart.fetchContent
(IMAPBodyPart.java:107)
at gnu.mail.providers.imap.IMAPBodyPart.getDataHandler
(IMAPBodyPart.java:247)
at javax.mail.internet.MimeBodyPart.getContent(MimeBodyPart.java:
683)
at gnu.mail.providers.imap.IMAPBodyPart.getContent
(IMAPBodyPart.java:261)
Cédric
Le 26 avr. 06 à 21:13, Cedric Hyppolite a écrit :
Hi Chris, all,
The first problem is now solved. (Thread 'bug in MIME header
parsing')
However I still can't read the message. The following code throws
an exception on the same message I sent you already.
Message message[] = folder.getMessages();
FetchProfile fetchProfile = new FetchProfile();
fetchProfile.add(UIDFolder.FetchProfileItem.ENVELOPE);
fetchProfile.add(UIDFolder.FetchProfileItem.CONTENT_INFO);
fetchProfile.add(UIDFolder.FetchProfileItem.FLAGS);
try {
folder.fetch(message, fetchProfile);
} catch (MessagingException e) {
}
message.getContent() // Exception !
On the bright side, this exception was already present before I
switch to CVS_HEAD. So it should not be a side-effect
of the previous fix. I thought it was linked to the first
problem, but it seems to be a different issue.
I can't reproduce the problem with my IMAP server, so it seems
likely it's down to an odd server-specific response to the FETCH.
If you could send tcpdump transcripts of the IMAP conversation I
should be able to work out what's going on.
Hi,
Actually I can't reproduce it either after I deleted all the mails
sent with the previous version of JavaMail.
I guess, it was a side effect of the other bug.
Thanks for your time !
Cédric
--
犬 Chris Burdess
"They that can give up essential liberty to obtain a little safety
deserve neither liberty nor safety." - Benjamin Franklin
_______________________________________________
Classpathx-discuss mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/classpathx-discuss