procmail
[Top] [All Lists]

Re: Scoring Recipe for repeating addresses?

2002-06-19 08:41:24
On Tue, 18 Jun 2002, Martin McCarthy wrote:

Date: Tue, 18 Jun 2002 23:05:08 +0100
[...]
Here's a slightly more involved variation on my previous suggestion:

  :0
  * ^TO_\/postmaster(_at_)(_dot_)*
  {
    :0
    * -4^0
    * 1^1 MATCH ?? \<postmaster@
    review(_at_)example(_dot_)com
  }


        I try to do generic version for this recipe but I get the "Skiping"
        message i.e. I have syntax error in procmailrc.  Is anyone see error
        in this recipe:

VERBOSE=yes
LOGABSTRACT=all
SHELL=/bin/sh
DEFAULT=/var/tmp/Udi/mail

:0
* ^TO_\/<[^(_at_)]+@
{
        :0
        * -4^0
        * $ 1^1 $MATCH
        /dev/null
}

        The log:

yarkon~% echo "To: <ab(_at_)X>,<ab(_at_)Y>,<ab(_at_)Z>" | formail -s procmail 
./testrc
procmail: [6305] Wed Jun 19 17:52:50 2002
procmail: Assigning "LOGABSTRACT=all"
procmail: Assigning "SHELL=/bin/sh"
procmail: Assigning "JUNK=/var/tmp/Udi/junk"
procmail: Assigning "DEFAULT=/var/tmp/Udi/mail"
procmail: Assigning "MATCH="
procmail: Matched "<ab@"
procmail: Match on
"(^((Original-)?(Resent-)?(To|Cc|Bcc)|(X-Envelope|Apparently(-Resent)?)-To):(.*[^-a-zA-Z0-9_.])?)\/<[^(_at_)]+@"
procmail: Score:      -4      -4 ""
procmail: Skipped "ab@"
procmail: Score:       0      -4 "<ab@"
procmail: Locking "/var/tmp/Udi/mail.lock"
procmail: Assigning "LASTFOLDER=/var/tmp/Udi/mail"
procmail: Opening "/var/tmp/Udi/mail"
procmail: Acquiring kernel-lock
procmail: Unlocking "/var/tmp/Udi/mail.lock"
From foo(_at_)bar  Wed Jun 19 17:52:50 2002
  Folder: /var/tmp/Udi/mail                                             65
yarkon~%


        BTW it skips on "ab@" with no "<"   (??)
        Any idea?

Thenks,
 Udi


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