On Wed, 30 Mar 2005, Steve Lake wrote:
SL>
SL> ðÏÌuÇÒÁÆuÑ Ë ÐpÁÚÄÎÉËÁÍ u Äp. ÓoÂÙÔÉÑÍ ÏÅÇ
SL>
SL> In other words it's garbled text that I'm guessing is supposed to be
SL> from another language. How would I catch this and stop it from coming in?
SL> Is there a rule that might take care of this? Or would this be something
SL> I'd have to bounce off the spam assassin guys? Any pointers are welcome.
SL>
SL>
# 5% gagabuggee subject
# avoid empty subject
:0
* ^Subject: \/.+
{
:0 D
* -1^1 MATCH ?? .
* 2^1 MATCH ?? =[0-9A-F][0-9A-F]
* 20^1 MATCH ?? [ ¡¢£€¥Š§š©ª«¬®¯°±²³Žµ¶·ž¹º»ŒœŸ¿]
* 20^1 MATCH ?? [ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖ×ØÙÚÛÜÝÞß]
* 20^1 MATCH ?? [àáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ]
* 20^1 MATCH ?? =[A-F][0-9A-F]
{
Do somthing, /dev/null perhaps
}
}
You might also need this:
# B Mime header extension in subject?
:0
* ^Subject:.*=\?.*\?b\?\/.+\?=
{
## LOG="B mime header $MATCH $NL"
MIMESUBJECT=`echo $MATCH | mimencode -u -b`
## LOG="B mime header $MIMESUBJECT $NL"
# 5% gagabuggee subject
:0 D
* -1^1 MIMESUBJECT ?? .
* 2^1 MIMESUBJECT ?? =[0-9A-F][0-9A-F]
* 20^1 MIMESUBJECT ?? [ ¡¢£€¥Š§š©ª«¬®¯°±²³Žµ¶·ž¹º»ŒœŸ¿]
* 20^1 MIMESUBJECT ?? [ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖ×ØÙÚÛÜÝÞß]
* 20^1 MIMESUBJECT ?? [àáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ]
* 20^1 MIMESUBJECT ?? =[A-F][0-9A-F]
{
Do somthing, /dev/null perhaps
}
}
Have a look at http://www.clifford.ac/chinese.html for an explanation and
download http://www.clifford.ac/chinese.zip. Not written by me but the
links to the author don't work anymore.
I have a slightly modified recipe for the body version which I can post
here without it trapping itself although it may pick up the gagabuggee in
the previous recipes.
# 5% gagabuggee body, version 2
:0 BD
* -1^1 .
* 2^1 =[0-9A-F][0-9A-F]
* 20^1 [ -ÿ]
* 20^1 =[A-F][0-9A-F]
{
}
--
Alan
( Please do not email me AS WELL as replying to the list. Please
address personal email to alan+1@ as lists@ is not read. A
password autoresponder may be invoked if this email is very old. )
____________________________________________________________
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