[ 
https://issues.apache.org/jira/browse/MIME4J-270?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Dmitry Katsubo updated MIME4J-270:
----------------------------------
    Description: 
JavaDoc of 
[{{MultipartBuilder#getSubType()}}|https://github.com/apache/james-mime4j/blob/6c31bd1e8f8b97cc432bbf9580e7383f00de1506/dom/src/main/java/org/apache/james/mime4j/message/MultipartBuilder.java#L75]
 reads:
{quote}
Gets the multipart sub-type. E.g. {{alternative}} (the default) or {{parallel}}.
{quote}
however builder creates multipart with {{null}} subtype:
{code}
Multipart multipart = MultipartBuilder.create().build();
new DefaultMessageWriter().writeMessage(multipart, System.out);
{code}
outputs:
{code}
MIME-Version: 1.0
Content-Type: multipart/null; 
boundary="-=Part.0.c3f59e98561a68df.16251ed82a4.feee6e1cf64afde8=-"
{code}
Expected that builder is initialized with some default subtype.

  was:
JavaDoc of 
[{{MultipartBuilder#getSubType()}}|https://github.com/apache/james-mime4j/blob/6c31bd1e8f8b97cc432bbf9580e7383f00de1506/dom/src/main/java/org/apache/james/mime4j/message/MultipartBuilder.java#L75]
 reads:
{quote}
Gets the multipart sub-type. E.g. {{alternative}} (the default) or {{parallel}}.
{quote}
however builder creates 
{code}
Multipart multipart = MultipartBuilder.create().build();
new DefaultMessageWriter().writeMessage(multipart, System.out);
{code}
outputs:
{code}
MIME-Version: 1.0
Content-Type: multipart/null; 
boundary="-=Part.0.c3f59e98561a68df.16251ed82a4.feee6e1cf64afde8=-"
{code}
Expected that builder is initialized with some default subtype.


> MultipartBuilder creates message with null subtype
> --------------------------------------------------
>
>                 Key: MIME4J-270
>                 URL: https://issues.apache.org/jira/browse/MIME4J-270
>             Project: James Mime4j
>          Issue Type: Improvement
>          Components: dom
>    Affects Versions: 0.8.1
>            Reporter: Dmitry Katsubo
>            Priority: Minor
>
> JavaDoc of 
> [{{MultipartBuilder#getSubType()}}|https://github.com/apache/james-mime4j/blob/6c31bd1e8f8b97cc432bbf9580e7383f00de1506/dom/src/main/java/org/apache/james/mime4j/message/MultipartBuilder.java#L75]
>  reads:
> {quote}
> Gets the multipart sub-type. E.g. {{alternative}} (the default) or 
> {{parallel}}.
> {quote}
> however builder creates multipart with {{null}} subtype:
> {code}
> Multipart multipart = MultipartBuilder.create().build();
> new DefaultMessageWriter().writeMessage(multipart, System.out);
> {code}
> outputs:
> {code}
> MIME-Version: 1.0
> Content-Type: multipart/null; 
> boundary="-=Part.0.c3f59e98561a68df.16251ed82a4.feee6e1cf64afde8=-"
> {code}
> Expected that builder is initialized with some default subtype.



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

Reply via email to