procmail
[Top] [All Lists]

Re: Messages from a country

2003-01-27 18:37:08
On Mon, 27 Jan 2003, Filipe de Moraes Paiva wrote:

FdMP>
FdMP> Also I think I posted my first message to the list before I was
FdMP> in the list, since I did not received it. How do I stop
FdMP> messges with characters such as ?¥?ºÎ±° on the subject ?
FdMP>
FdMP>


This is how I do it.  And as I also check for those characters in the body
and haven't got around to changing it yet, I will identify this message as
spam :-( These recipes are derived from a website
http://www.waltdnes.org/email/chinese/link.html that doesn't appear to
work anymore. Find this document and read it or I can email it to you with
the original recipe for scoring the body.



# 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]
  {
    nl
    nl=${SPAMREASON+"$NL"}
    SPAMREASON="${SPAMREASON}${nl}${SPAMREASON_HEADER}subject gagabuggee
score = $="
    # LOG="SCORE = $=$NL"
  }
}


# 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]
  {
    nl
    nl=${SPAMREASON+"$NL"}
    SPAMREASON="${SPAMREASON}${nl}${SPAMREASON_HEADER}B mime subject
gagabuggee score = $="
    # LOG="SCORE = $=$NL"
  }
}





Alan

( Please do not email me AS WELL as replying to the list. Personal
  email is welcome but may invoke a password autoresponder - the
  current pass-through address is alan+1@  )


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


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