procmail
[Top] [All Lists]

Re: an old thread, dealing with winmail.dat files

2006-01-18 03:03:24
Mr Duck wrote:
Somewhat recently, I had asked in here about trying to find
alternate ways to strip off the winmail.dat file attachment.
We are currently using demime, which has the unpleasant side
effect of stripping ALL attachments.

winmail.dat is actually an attachment that could contain:
  - the mail text, with "rich text" formatting
  - the other attachments.

In the easy case, the winmail.dat attachment contains only
the formatted version of the mail body text, and contains
indeed mostly redundant information.  In the other cases,
you actually need to extract the attachments from winmail.dat
append those as "normal" attachments.

I test for the winmail.dat attachment with:

   :0 fwB
   * ^Content-Type: application/ms-tnef
   | /usr/local/bin/ytnefprocess.pl

And pipe the message through a perl glue script for the
ytnef program (google for "ytnef").




Anyway, I was pondering this issue today, and had a thought.
I was hoping that someone here could perhaps assist me with
knowledge. (=

I use procmail to locate the attachment as:

   * ^Content-type:[ ](multipart/mixed|application/octet-stream)
   * B ?? ^.*name\="winmail\.dat"

My question is this:

-- 
Paul Bijnens, Xplanation                            Tel  +32 16 397.511
Technologielaan 21 bus 2, B-3001 Leuven, BELGIUM    Fax  +32 16 397.512
http://www.xplanation.com/          email:  
Paul(_dot_)Bijnens(_at_)xplanation(_dot_)com
***********************************************************************
* I think I've got the hang of it now:  exit, ^D, ^C, ^\, ^Z, ^Q, ^^, *
* F6, quit, ZZ, :q, :q!, M-Z, ^X^C, logoff, logout, close, bye, /bye, *
* stop, end, F3, ~., ^]c, +++ ATH, disconnect, halt,  abort,  hangup, *
* PF4, F20, ^X^X, :D::D, KJOB, F14-f-e, F8-e,  kill -1 $$,  shutdown, *
* init 0, kill -9 1, Alt-F4, Ctrl-Alt-Del, AltGr-NumLock, Stop-A, ... *
* ...  "Are you sure?"  ...   YES   ...   Phew ...   I'm out          *
***********************************************************************



____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>