On Wed, 10 Mar 2004, 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,
but if the mail came from a mail client like i.e. 'outlook express' or other
that encode the header to iso-8859-1, procmail will try to compare the
Subeject rule on the encoded subject and the recipe will not work.
So I have the case
( * ^Subject:.*Milhões pra cáça ) is different ( *
^Subject:.*=?iso-8859-1?B?TWlsaPVlcyBwcmEgY+HnYQ==?=)
From my procmailrc:
:0
* < 66000
* ^Subject:[ ]*=\?(iso-8859-1|utf-8)\?\/..[^\?]*
{
:0
* MATCH ?? B\?\/[^\?]*
{ BBB=`echo $MATCH | mimencode -u | cat -v` }
:0
* MATCH ?? Q\?\/[^\?]*
{ QQQ=`echo $MATCH | mimencode -u -q | cat -v` }
T="$QQQ $BBB"
:0:
*$ $M^0 T ?? ()\<(offer|doctor|stock|mortga|prescription|loan)
*$ $M^0 T ?? d($PU)r($PU)u($PU)g($PU)s?
... And More ...
$JUNK/$DATE
}
Bye,
Udi
Resuming, Is there any way to procmail decode the subject iso-8859-1 and
match my rule?
regards!
=================================
Felipe Piccirilo
piccirilo(_at_)gruponet(_dot_)com(_dot_)br
Brazil - SP - Limeira
=================================
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail
+++++++++++++++++++++++++++++++++++++++++++
This Mail Was Scanned By Mail-seCure System
at the Tel-Aviv University CC.
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail