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

Message.MessageBuilder#startMultupart does not set multipart subType

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.3, 0.4
    • 0.3, 0.4
    • None
    • None
    • Any

    Description

      When parsing a multipart message with new Message(is) the subtype of the multipart is never set, so it always returns "alternative", which is the default subtype.

      Patch required for Message.java

      — Message.java 2008-03-19 07:45:10.843750000 +1100
      +++ Message1.java 2008-03-19 07:46:08.875000000 +1100
      @@ -164,6 +164,7 @@

      Entity e = (Entity) stack.peek();
      Multipart multiPart = new Multipart();
      + multiPart.setSubType(bd.getMimeType().substring(10));
      e.setBody(multiPart);
      stack.push(multiPart);
      }

      Attachments

        1. MessageTest.java
          5 kB
          Antony Bowesman

        Activity

          People

            robertburrelldonkin Robert Burrell Donkin
            adb Antony Bowesman
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 5m
                5m
                Remaining:
                Remaining Estimate - 5m
                5m
                Logged:
                Time Spent - Not Specified
                Not Specified