----- Original Message -----
From: "Danny Angus" <[EMAIL PROTECTED]>
Subject: listserve, details, its all in the details
> I see this in GenericListserve:
>
> if (!isAttachmentsAllowed() && mail.getMessage().getContent() instanceof
> MimeMultipart) {
> getMailetContext().bounce(mail, "You cannot send
attachments
> to this listserv.");
> mail.setState(Mail.GHOST);
> return;
Not sure if this algorithm is correct to determine attachement. Multipart
Content may be a Multipart Mixed. Maybe there is a lurking bug there.
> where can I find out how to deal with MIME messages in my mailet?
javax.mail and javax.mail.internet would be good packages to look at. You
can get the source from Sun under SCSL license. It is part of J2EE source
distribution.
Harmeet
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]