Uploaded image for project: 'James Mime4j'
  1. James Mime4j
  2. MIME4J-270

MultipartBuilder creates message with null subtype

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.8.1
    • 0.8.3
    • dom
    • None

    Description

      JavaDoc of MultipartBuilder#getSubType() reads:

      Gets the multipart sub-type. E.g. alternative (the default) or parallel. See RFC 2045 for common sub-types and their meaning.

      however builder creates multipart with null subtype:

      Multipart multipart = MultipartBuilder.create().build();
      new DefaultMessageWriter().writeMessage(multipart, System.out);
      

      outputs:

      MIME-Version: 1.0
      Content-Type: multipart/null; boundary="-=Part.0.c3f59e98561a68df.16251ed82a4.feee6e1cf64afde8=-"
      

      Expected that builder is initialized with some default subtype.
      More over subtypes are listed in RFC 2046 (not in 2045):

      Attachments

        1. james-mime4j.patch
          2 kB
          Dmitry Katsubo

        Issue Links

          Activity

            People

              Unassigned Unassigned
              dma_k Dmitry Katsubo
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: