From mime4j-dev-return-2370-archive-asf-public=cust-asf.ponee.io@james.apache.org Fri Mar 23 09:42:07 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 82D2E18064D for ; Fri, 23 Mar 2018 09:42:06 +0100 (CET) Received: (qmail 64058 invoked by uid 500); 23 Mar 2018 08:42:05 -0000 Mailing-List: contact mime4j-dev-help@james.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: mime4j-dev@james.apache.org Delivered-To: mailing list mime4j-dev@james.apache.org Received: (qmail 63811 invoked by uid 99); 23 Mar 2018 08:42:04 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Mar 2018 08:42:04 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 9CBE2182D91 for ; Fri, 23 Mar 2018 08:42:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -1.391 X-Spam-Level: X-Spam-Status: No, score=-1.391 tagged_above=-999 required=6.31 tests=[RCVD_IN_DNSWL_MED=-2.3, SPF_FAIL=0.919, T_RP_MATCHES_RCVD=-0.01] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id mjEg2r1UW0Al for ; Fri, 23 Mar 2018 08:42:02 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id E36D95F126 for ; Fri, 23 Mar 2018 08:42:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 0D8E8E0D77 for ; Fri, 23 Mar 2018 08:42:01 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 444E2214E4 for ; Fri, 23 Mar 2018 08:42:00 +0000 (UTC) Date: Fri, 23 Mar 2018 08:42:00 +0000 (UTC) From: "Dmitry Katsubo (JIRA)" To: mime4j-dev@james.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (MIME4J-270) MultipartBuilder creates message with null subtype MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ 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}}. See RFC 2045 for common sub-types and their meaning. {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. More over subtypes are listed in RFC 2046: * [Alternative Subtype|https://tools.ietf.org/html/rfc2046#section-5.1.4] * [Parallel Subtype|https://tools.ietf.org/html/rfc2046#section-5.1.6] 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 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. > 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}}. See RFC 2045 for common sub-types and their meaning. > {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. > More over subtypes are listed in RFC 2046: > * [Alternative Subtype|https://tools.ietf.org/html/rfc2046#section-5.1.4] > * [Parallel Subtype|https://tools.ietf.org/html/rfc2046#section-5.1.6] -- This message was sent by Atlassian JIRA (v7.6.3#76005)