Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

MessagingException: Failed to load IMAP envelope - trying to read subject

843834Mar 25 2009 — edited Mar 26 2009
While trying to getSubject() on an IMAP message from Google, I am getting a MessagingException. The trace clearly shows that the client is already in possession of the subject of the message.. so why does IMAPMessage.getSubject() call into IMAPMessage.loadEnvelope() ? Am I missing something?

thanks in advance
asankha (Apache Synapse)
2009-03-25 18:36:26,229 [-] [mailto-Worker-1] DEBUG MailTransportListener Checking mail for account : synapse.demo.1@gmail.com
2009-03-25 18:36:26,230 [-] [mailto-Worker-1] DEBUG MailTransportListener Attempting to connect to POP3/IMAP server for : synapse.demo.1@gmail.com using {}
DEBUG: mail.imap.fetchsize: 16384
* OK Gimap ready for requests from 124.43.165.26 31if12210955wff.54
A0 CAPABILITY
* CAPABILITY IMAP4rev1 UNSELECT IDLE NAMESPACE QUOTA XLIST CHILDREN XYZZY
A0 OK Thats all she wrote! 31if12210955wff.54
DEBUG: protocolConnect login, host=imap.gmail.com, user=synapse.demo.1, password=<non-null>
A1 LOGIN synapse.demo.1 mailpassword
A1 OK synapse.demo.1@gmail.com authenticated (Success)
IMAP DEBUG: IMAPProtocol noop
A2 NOOP
A2 OK Success
A3 LIST INBOX ""
* LIST (\Noselect) "/" "/"
A3 OK Success
2009-03-25 18:36:29,397 [-] [mailto-Worker-1] DEBUG MailTransportListener Connecting to folder : INBOX of email account : synapse.demo.1@gmail.com
DEBUG: connection available -- size: 1
A4 SELECT INBOX
* FLAGS (\Answered \Flagged \Draft \Deleted \Seen)
* OK [PERMANENTFLAGS (\Answered \Flagged \Draft \Deleted \Seen \*)]
* OK [UIDVALIDITY 600509603]
* 3 EXISTS
* 0 RECENT
* OK [UNSEEN 2]
* OK [UIDNEXT 172]
A4 OK [READ-WRITE] INBOX selected. (Success)
A5 LIST "" INBOX
* LIST (\HasNoChildren) "/" "INBOX"
A5 OK Success
A6 FETCH 1:3 (ENVELOPE INTERNALDATE RFC822.SIZE FLAGS BODYSTRUCTURE BODY.PEEK[HEADER] RFC822.SIZE)
* 1 FETCH (RFC822.SIZE 2851657 INTERNALDATE "25-Mar-2009 11:36:30 +0000" FLAGS (\Seen) ENVELOPE ("Wed, 25 Mar 2009 04:36:23 -0700 (PDT)" "Fw: \"GOD WILL...\" - Great piece of music.." (("Asankha C. Perera" NIL "username" "yahoo.com")) (("Asankha C. Perera" NIL "username" "yahoo.com")) (("Asankha C. Perera" NIL "username" "yahoo.com")) ((NIL NIL "synapse.demo.1" "gmail.com")) NIL NIL NIL "<395387.74233.qm@web36506.mail.mud.yahoo.com>") BODYSTRUCTURE ((("TEXT" "PLAIN" ("CHARSET" "utf-8") NIL NIL "QUOTED-PRINTABLE" 658 8 NIL NIL NIL)("TEXT" "HTML" ("CHARSET" "utf-8") NIL NIL "QUOTED-PRINTABLE" 2045 26 NIL NIL NIL) "ALTERNATIVE" ("BOUNDARY" "0-1595074673-1237980984=:74233") NIL NIL)("APPLICATION" "OCTET-STREAM" NIL NIL NIL "BASE64" 2845966 NIL ("ATTACHMENT" ("FILENAME" "GodWill.pps")) NIL) "MIXED" ("BOUNDARY" "0-1501220902-1237980984=:74233") NIL NIL) BODY[HEADER] {2363}
Delivered-To: synapse.demo.1@gmail.com
Return-Path: <username@yahoo.com>
...<removed to reduce size of pos>...
Message-ID: <395387.74233.qm@web36506.mail.mud.yahoo.com>
Date: Wed, 25 Mar 2009 04:36:23 -0700 (PDT)
From: "Asankha C. Perera" <username@yahoo.com>
Subject: Fw: "GOD WILL..." - Great piece of music..
To: synapse.demo.1@gmail.com
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="0-1501220902-1237980984=:74233"
Edited by: asankha on Mar 25, 2009 8:33 AM
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 23 2009
Added on Mar 25 2009
3 comments
915 views