On Tue, 16 Oct 2001, Danny Angus wrote: > correct me if I'm wrong Oki, but does your attachement work by writing all > the headers, then the body into a file the reading it into a body part?
Yes, there's a bit of a hack in there. I wanted the mailet to be "pine-friendly"; so, basically, what I did was attach a binary file to a mail which was sent out using Pine, and then I looked into the message_body in the db table. Then, tried to have the message headers generated by the mailet to be just like what was in the table. If I used MimeMultipart and build everything from there, it seemed that Pine didn't parse the multipart message; it wanted to have the headers to be just like what it is now (that's generated by the mailet). > If so you might be interested in this code snippet ... ... I see... I haven't tried to use "message/rfc822". BTW, where can I get the MIME types that can be handled by MimeBodyPart? Once I tried "application/zip", but it wasn't recognized. Oki --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
