The Message.MessageBuilder class implements ContentHandler, but when parsing a multipart content type, never sets the subtype, so the Multipart object is always subtype "alternative".

As the ContentTypeField throws away the main/subtypes and combines them into mimeType, shouldn't the startMultipart handler do something like

   public void startMultipart(BodyDescriptor bd) {
       expect(Entity.class);

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

Antony


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to