On 10/21/2009 03:01:07 PM, Peter Bloomfield wrote:
####################################################################
# TNEF Attachments
:0
* ^X-MS-TNEF-Correlator
{
:0 fw B
* winmail.dat
|/usr/bin/ytnefprocess.pl
}
to your .procmailrc would call it when necessary
Well, no, that doesn't seem to work. If I pipe a message through
ytnefprocess.pl > some-file, I can add some-file as an mbox and the
message has the contents of the TNEF part added as extra MIME parts.
But that procmail rule doesn't do anything :(
The recipe above runs ytnefprocess.pl as a filter for every message
provided that it has X-MS-TNEF-Correlator header and its body contains
winmail.dat string. The exit result of yynefprocess.pl is checked and
the message is discarded if the message is nonzero.
I am not familiar with ypnetprocess.pl - maybe it returns non-zero exit
result?
The ytnef documentation (/usr/share/doc/ytnef-2.6/README) suggest to
use a basically identical rule:
If you want to use ytnefprocess.pl, then make sure to do the following:
1) Make a directory ~/.ytnef
2) Make a directory ~/.ytnef/output
3) Install the MIME::Parser perl module. You can do this with:
perl -MCPAN -e shell
(let it load)
install MIME::Parser
4) Copy ytnefprocess.pl & ytnef to a place like /usr/bin.
5) Create a .procmailrc something like this:
PATH=/bin:/usr/bin
:0fw
* > 0
| /usr/bin/ytnefprocess.pl
_______________________________________________
balsa-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/balsa-list