james-mime4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sharma, Ashish" <ashish.shar...@hp.com>
Subject RE: Unable to pull out file names of attached file
Date Fri, 21 Oct 2011 07:56:03 GMT

I have logged a relevant Bug as per your suggestion.

Meanwhile can someone give me any alternative approach that I can use till the Bug is fixed
in the next build?

As of now I get a Map of following type (by using the call ((MaximalBodyDescriptor)bodyDescriptor).getContentDispositionParameters()):

Key: filename*3*, Value: %E5%A5%BD%E6%82%A8%E5%A5%BD%E6%82%A8%E5%A5%BD%E6%82%A8.txt

Key: filename*1*, Value: %E5%A5%BD%E6%82%A8%E5%A5%BD%E6%82%A8%E5%A5%BD%E6%82%A8%E5%A5%BD%E6%82%A8%E5%A5%BD%E6%82%A8%E5%A5%BD%E6%82%A8%E5%A5%BD%E6%82%A8%E5%A5%BD%E6%82%A8%E5%A5%BD%E6%82%A8%E5%A5%BD%E6%82%A8%E5%A5%BD

Key: filename*0*, Value: utf-8''%E6%82%A8%E5%A5%BD%E6%82%A8%E5%A5%BD%E6%82%A8%E5%A5%BD%E6%82%A8%E5%A5%BD%E6%82%A8%E5%A5%BD%E6%82%A8%E5%A5%BD%E6%82%A8%E5%A5%BD%E6%82%A8%E5%A5%BD%E6%82%A8%E5%A5%BD%E6%82%A8%E5%A5%BD%E6%82%A8

Key: filename*2*, Value: %E6%82%A8%E5%A5%BD%E6%82%A8%E5%A5%BD%E6%82%A8%E5%A5%BD%E6%82%A8%E5%A5%BD%E6%82%A8%E5%A5%BD%E6%82%A8%E5%A5%BD%E6%82%A8%E5%A5%BD%E6%82%A8%E5%A5%BD%E6%82%A8%E5%A5%BD%E6%82%A8%E5%A5%BD%E6%82%A8

For the content disposition string :

Content-Disposition: attachment;

Here an ordered list would have been a good option in recreating and decoding the original

Any suggestions anyone?


-----Original Message-----
From: Stefano Bagnara [mailto:apache@bago.org] 
Sent: Wednesday, October 19, 2011 10:00 PM
To: mime4j-dev@james.apache.org
Subject: Re: Unable to pull out file names of attached file

2011/10/19 Sharma, Ashish <ashish.sharma3@hp.com>:
> Hi,
> I am using mime4j (version 0.7) for parsing emails.
> I am unable to get the file name of an attachment in an email that is sent to me by using
an iPhone.
> To me it looks like mime4j is unable to identify the filename of the attachment that
is added in the email. (Refer RFC : 2183, 2184, 2231)
> Can someone look into the issue?
> Email is attached.

Email attachments are stripped by the mailing list manager.
Can you open a JIRA issue and attach your email there?


View raw message