classpathx-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Classpathx-discuss] Exception in IMAPBodyPart


From: Cedric Hyppolite
Subject: [Classpathx-discuss] Exception in IMAPBodyPart
Date: Wed, 26 Apr 2006 21:13:32 +0200

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.

Any idea/fix would be appreciated.

Regards,

Cedric HYPPOLITE







reply via email to

[Prev in Thread] Current Thread [Next in Thread]