Hi Andreas in <JAVA_HOME>/jre/lib there is (or there should be) the file mailcap; you have to edit it to add the mapping between "message/delivery-status" and a handler.
It should look like: message/delivery-status;; x-java-content-handler=my.package.MyClass Cheers Marcello > -----Messaggio originale----- > Da: Andreas Göggerle [mailto:[EMAIL PROTECTED] > Inviato: giovedě 25 settembre 2003 18.07 > A: 'James Developers List' > Cc: [EMAIL PROTECTED] > Oggetto: Problem with MIME type message/delivery-status > > > Hi everyone, > > while writing a DSNBounce mailet that produces RFC3464 conform > Delivery Status Notifications I encountered a problem with the > MIME type "message/delivery-status". > When I try to send a multipart mail with a bodypart having this > MIME type, I get the follwing runtime exception: > > [cut] > > This is how I set the MIME type: > > MimeBodyPart dsn = new MimeBodyPart(); > MimeMessage dsnMessage = new > MimeMessage(Session.getDefaultInstance(System.getProperties(), null)); > StringWriter sout = new StringWriter(); > [...] > dsnMessage.setText(sout.toString()); > dsnMessage.saveChanges(); > dsn.setContent(dsnMessage, "message/delivery-status"); > > I'm using sun's mail.jar version 1.3.1 and activation.jar version 1.0.2 > I'm running james-3.0a1 from CVS HEAD on a Win2000 OS > > > How can I solve this problem? Seems I have to somehow "register" > a DataContentHandler for the MIME type, but I have no idea how/where > to do so. Any help would be appreciated. > > Thanks in advance > Andreas > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]