You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mime4j-dev@james.apache.org by "Howard Nguyen (JIRA)" <mi...@james.apache.org> on 2014/05/02 22:32:17 UTC

[jira] [Created] (MIME4J-238) Add custom mimetype with multipart support

Howard Nguyen created MIME4J-238:
------------------------------------

             Summary: 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.

You do this check in MimeUtil.isMultipart method.

Is it possible to pass an interface 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)