procmail
[Top] [All Lists]

Re: Charset ISO-8859-1 and ASCII Subjects

2004-03-10 07:12:43
Felipe Piccirilo wrote:
Hi,

Supose I want to block Subjects contents like the recipe below:

0
 * ^Subject:.*Milhões pra cáça
 /dev/null

So, If the subject came in plain text or ASCII the recipe works fine,

I think messages will always come to you as 7-bits. So it'll have to be ?B?
or ?Q? encoded.

( * ^Subject:.*Milhões pra cáça ) is different ( *
^Subject:.*=?iso-8859-1?B?TWlsaPVlcyBwcmEgY+HnYQ==?=)

Resuming, Is there any way to procmail decode the subject iso-8859-1
and match my rule?

This seems like a tight solution:
http://mail.python.org/pipermail/mailman-users/2001-March/009997.html

but I don't know how to call this perl script from procmail.  I'm fresh at
this.
-eric wood


_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail