procmail
[Top] [All Lists]

Re: Filtering capitalized subject

2002-01-09 07:11:15
From: Martin McCarthy <marty(_at_)ancient-scotland(_dot_)co(_dot_)uk>

Maybe the appropriate thing would be
a recipe that catches messages with a subject that contains no
lower-case letters and at least one upper-case letter?  In which case
something like:

  :0 D:
  * ^[Ss][Uu][Bb][Jj][Ee][Cc][Tt]:[^a-z]*[A-Z][^a-z]*$
  allcaps

should do the job.

I took the question to mean that he wants to ID spam that
comes in as the last two of my daily fortyish just did:

DING! ulysium:~/Mail> Mail -f /usr/tmp/myspam 
Mail $Revision: 4.2.4.2 $  Type ? for help.
"/usr/tmp/myspam": 2 messages 2 new
  1 k17376(_at_)topmail(_dot_)d  Wed Jan  9 08:03  89/3603 "GETTING AN 
EDUCATION WITHOU"
    2 k17376(_at_)topmail(_dot_)d  Wed Jan  9 08:06  89/3602 "GETTING AN 
EDUCATION WITHOU"


So how about:

        :0  # whitespace in brackets comprise a space and a tab
        * ^Subject:[    ]\/.*
        {
           :0 D
           * MATCH ?? [a-z]
           { }

           :0 A:
           ALLCAPS
        }


-- 
Netcom has imploded.  Please now use NOTnetcom.com for mail.
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Ex-Netcommies:  Mail "forwards" for free forwarding service!
NOT affiliated with EarthLink, Inc.'s Netcom brand identity.
_______________________________________________
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>