james-mime4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Oleg Kalnichevski (JIRA)" <mime4j-...@james.apache.org>
Subject [jira] [Commented] (MIME4J-238) Add custom mimetype with multipart support
Date Sat, 03 May 2014 12:06:15 GMT

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

Oleg Kalnichevski commented on MIME4J-238:
------------------------------------------

Howard,
Is it really good idea to push weirdness from some application into what is meant to be a
generic, general purpose library? Even if your application uses some custom content type,
why is it such a problem to make that custom type to use 'multipart' mime type?

{noformat}
Content-Type: multipart/x-my-weird-application; boundary="Part_8_5123801.1399049231138"
{noformat}

or 

{noformat}
Content-Type: x-multipart/my-weird-application; boundary="Part_8_5123801.1399049231138"
{noformat}

Oleg 

> Add custom mimetype with multipart support
> ------------------------------------------
>
>                 Key: MIME4J-238
>                 URL: https://issues.apache.org/jira/browse/MIME4J-238
>             Project: James Mime4j
>          Issue Type: Wish
>    Affects Versions: 0.8.0
>            Reporter: Howard Nguyen
>
> Add custom mimetype with multipart support is basically not only mime type that start
with "multipart/" signaling multipart. Of course, the Content-Type would still have "boundary"
parameter. For example:
> {code}
> Content-Type: x-my-weird-application; boundary="Part_8_5123801.1399049231138"
> {code}
> You do this check in MimeUtil.isMultipart method.
> Is it possible to pass an interface MultipartChecker to through MimeConfig to MimeEntity
so that in the following method so that we use it instead of MimeUtil
> {code}
>     public EntityStateMachine advance() throws IOException, MimeException {
>       ...
>       case T_END_HEADER:
>         ...
>             } else if (MimeUtil.isMultipart(mimeType)) {
>                 state = EntityState.T_START_MULTIPART;
>                 clearMimePartStream();
>             }
>        ...
>   }
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message