Re: MailBox: handling MS-TNEF attachments
Mark Overmeer <[email protected]> Tue, 31 Aug 2004 18:15:10 +0200
| Newsgroups | gmane.comp.lang.perl.modules.mail-box |
|---|---|
| Organization | MARKOV Solutions |
| Message-ID | <[email protected]> |
Hi Koen,
I missed your question because of a spam overload. Please put 'MailBox'
in the subject the next time (it will help me)
> Some automated scripts written in VBScript send out mails with attachments
> using Microsoft's CDO. These attachments do not appear as regular
> "Application/OCTET-STREAM" but as " Application/MS-TNEF". I am using the
> standard $obj->decoded( OPTIONS ) methode to decode this message.
> Unfortunately it doesn't decode the message properly. Does anyone of you has
> experienced the same?
The 'decoded()' method is removing the transfer-encoding. What you
need is a descrambling of the body. The best place to do that is
probably as rule in Mail::Message->rebuild()....
> Does the mailbox perl module know how to handle these types of
> attachments at all?
I have encounted the attachement format before, but was not able
to figure-out how it works. Now I see that there is a Convert::TNEF
module. Some challenged? Shouldn't be too hard, probably some
subroutine in Mail::Message::Construct::Rebuild.
--
MarkOv
------------------------------------------------------------------------
drs Mark A.C.J. Overmeer MARKOV Solutions
[email protected] [email protected]
http://Mark.Overmeer.net http://solutions.overmeer.net