procmail
[Top] [All Lists]

Re: Problems with space

2005-11-29 08:33:04
On Tue, Nov 29, 2005 at 10:09:23AM -0500, Frank Bures wrote:

THIRDMAX = '715827883'

:0
*$ $THIRDMAX ()\/trigger1
*$ $THIRDMAX ()\/trigger2
*$ $THIRDMAX ()\/trigger3
.
.
.
*$ $THIRDMAX ()\/triggerN
{                                      
  LOG="Match = West African Fraud${NL}"
    :0                                 
    /var/spool/mail/spam               
}                                      
##############                                       

to let procmail exit after just three matches.

However, what I am getting in the verbose log is that after
matching only trigger1 and assigning score 715827883 715827883
and not finding any other match, the recipe still sends mail to
spam folder.

Why is this happening?

You are using a technique I nicknamed the "infinity shuffle"
a while ago.  It's clever, at the cost of a bit of
transparency.  You left a step out, which is why you're getting
false matches: at the end, if we didn't already tip procmail's
maximum integer and do an instant scuttle to the action line,
then we need to subtract the (partial) postive scores we
did come up with.

Last (addtional) condition should thus be:

   * $ $STOP

where "$STOP" was defined as "-9876543210^0" earlier.

Dallman

____________________________________________________________
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

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