Hi,

@Phanidhar Could you attach to the JIRA the source of the mail that gives the issue?

@ mrcoolkannan maybe this happens with a specific mail content (btw, if you comment on the jira, you will be notified with further jira updates - easier to follow).

Thx,
Eric

On 04/19/2012 08:53 AM, mrcoolkannan wrote:
Phanidhar,

I couldn't reproduce the issue in my environment.

* 3 FETCH (BODYSTRUCTURE (("TEXT" "PLAIN" ("charset" "ISO-8859-1") NIL NIL "7BIT" 2 1 NIL NIL NIL NIL)("APPLICATION" "OCTET-STREAM" ("name" 
"sujitha") NIL NIL "BASE64" 976 NIL ("attachment" ("filename" "sujithasujithasujithasujithasujithasujithasujithasujithasujitha")) NIL NIL) "MIXED" ("boundary" 
"000e0cd14ed8d6a5150469ffee17") NIL NIL NIL))

Regards,
Giridhar Kannan.

---- On Thu, 19 Apr 2012 02:22:39 +0530 Phanidhar (Created) (JIRA)  wrote ----

Not able to read email over IMAP with attachment name more than 50 chars.
--------------------------------------------------------------------------

Key: IMAP-367
URL: https://issues.apache.org/jira/browse/IMAP-367
Project: JAMES Imap
Issue Type: Bug
Affects Versions: 0.3
Reporter: Phanidhar
Priority: Blocker


Following is the debug information detail.

A4 FETCH 1 (BODYSTRUCTURE)
* 1 FETCH (BODYSTRUCTURE ((("TEXT" "PLAIN" ("charset" "us-ascii") NIL NIL "QUOTED-PRINTABLE" 2 1 NIL NIL NIL NIL)("TEXT" "HTML" ("charset" "us-ascii") NIL NIL 
"QUOTED-PRINTABLE" 297 6 NIL NIL NIL NIL) "ALTERNATIVE" ("boundary" "_000_FB7AE61DEFD0C24CAC719531844DD73E0495EAEC0F9Cemailgce200_") NIL NIL NIL)("APPLICATION" "PDF" ("name" 
"Teracore_Invoice_230206_DOLJ109631059_ DOL TO2_PE_TEST_50_CHAR_INVOICE.pdf") NIL "Teracore_Invoice_230206_DOLJ109631059_ DOL
TO2_PE_TEST_50_CHAR_INVOICE.pdf" "BASE64" 102956 NIL ("attachment" ("creation-date" "Mon, 16 Apr 2012 16:09:43 GMT" "filename" 
"Teracore_Invoice_230206_DOLJ109631059_ DOL TO2_PE_TEST_50_CHAR_INVOICE.pdf" "modification-date" "Mon, 16 Apr 2012 16:09:43 GMT" "size" "75237")) NIL NIL) "MIXED" 
("boundary" "_004_FB7AE61DEFD0C24CAC719531844DD73E0495EAEC0F9Cemailgce200_") NIL ("en-US") NIL))
Not able to process the mail reading.
java.lang.ArrayIndexOutOfBoundsException: 512
    at com.sun.mail.iap.Response.parseString(Response.java:396)
    at com.sun.mail.iap.Response.readString(Response.java:325)
    at com.sun.mail.imap.protocol.BODYSTRUCTURE.(BODYSTRUCTURE.java:238)
    at com.sun.mail.imap.protocol.BODYSTRUCTURE.(BODYSTRUCTURE.java:117)
    at com.sun.mail.imap.protocol.FetchResponse.parse(FetchResponse.java:159)
    at com.sun.mail.imap.protocol.FetchResponse.(FetchResponse.java:68)
    at 
com.sun.mail.imap.protocol.IMAPResponse.readResponse(IMAPResponse.java:137)
    at 
com.sun.mail.imap.protocol.IMAPProtocol.readResponse(IMAPProtocol.java:261)
    at com.sun.mail.iap.Protocol.command(Protocol.java:310)
    at com.sun.mail.imap.protocol.IMAPProtocol.fetch(IMAPProtocol.java:1312)
    at com.sun.mail.imap.protocol.IMAPProtocol.fetch(IMAPProtocol.java:1304)
    at 
com.sun.mail.imap.protocol.IMAPProtocol.fetchBodyStructure(IMAPProtocol.java:1004)
    at com.sun.mail.imap.IMAPMessage.loadBODYSTRUCTURE(IMAPMessage.java:1268)
    at com.sun.mail.imap.IMAPMessage.getContentType(IMAPMessage.java:443)
    at javax.mail.internet.MimeBodyPart.isMimeType(MimeBodyPart.java:1059)
    at javax.mail.internet.MimeMessage.isMimeType(MimeMessage.java:965)
    at drivers.ReadMail.processMail(ReadMail.java:99)
    at drivers.ReadMail.(ReadMail.java:34)
    at drivers.ReadMail.main(ReadMail.java:476)



--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]




---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]


--
eric | http://about.echarles.net | @echarles

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to