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

Raffaele Gambelli edited comment on MIME4J-275 at 5/17/18 7:04 AM:
-------------------------------------------------------------------

Thx Benoit, but if it's valid so if it's normal that getFilename() doesn't 
return "name" attribute of Content-type, then which method should I call to 
retrieve that attribute?

There I have a org.apache.james.mime4j.dom.Entity and I don't see a suitable 
method, thanx

 

There are old issues too stating same thing #MIME4J-246 and #MIME4J-206


was (Author: gamby1980):
Thx Benoit, but if it's valid so if it's normal that getFilename() doesn't 
return "name" attribute of Content-type, then which method should I call to 
retrieve that attribute?

There I have a org.apache.james.mime4j.dom.Entity and I don't see a suitable 
method, thanx

> Unable to read content-type name, getFileName return null
> ---------------------------------------------------------
>
>                 Key: MIME4J-275
>                 URL: https://issues.apache.org/jira/browse/MIME4J-275
>             Project: James Mime4j
>          Issue Type: Bug
>          Components: parser (core)
>    Affects Versions: 0.8.1
>            Reporter: Raffaele Gambelli
>            Priority: Major
>         Attachments: vi_attachment_name.eml
>
>
> Hi all,
> I have an eml where there is a part like this:
> {quote}--___04381732116.93.1525348748___
> Content-Transfer-Encoding: Base64
> Content-type: application/pdf; Name="20180503_135905_043475033.pdf"
> {quote}
>  
> I know that it is missing the content-disposition, but parser shouldn't be 
> able to read content-type name anyway? And doing so, part.getFileName() would 
> return that, am I wrong?



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to