[ 
https://issues.apache.org/jira/browse/IMAP-367?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13257562#comment-13257562
 ] 

Phanidhar commented on IMAP-367:
--------------------------------

Th issue is with email attachements having spaces in the file names (Occurs 
only with larger file names). 
                
> 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.<init>(BODYSTRUCTURE.java:238)
>       at 
> com.sun.mail.imap.protocol.BODYSTRUCTURE.<init>(BODYSTRUCTURE.java:117)
>       at 
> com.sun.mail.imap.protocol.FetchResponse.parse(FetchResponse.java:159)
>       at 
> com.sun.mail.imap.protocol.FetchResponse.<init>(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.<init>(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]

Reply via email to