procmail
[Top] [All Lists]

Re: Help with recipe using scoring

2005-02-25 08:49:26
On Feb 24, Ruud H.G. van Tol (nospam-rvtol(_at_)isolution(_dot_)nl(_dot_)ns) 
typed:

 But I found that this receipe matched on $10 Million and
dropped into my INBOX.

procmail: Score: -95000000 -95000000 ""
procmail: Score: 10000000 -85000000 ""

It is not likely that recipe that causes delivery to your Inbox.
The quoted log-lines do not show the delivery.

Maybe the messagge just dropped of at the end of your .procmailrc
and was delivered to $DEFAULT?



On Feb 24, Professional Software Engineering 
(nospam-PSE-L(_at_)mail(_dot_)professiona(_dot_)(_dot_)(_dot_):

I'd set the complete recipe up in a sandbox and throw test messages at it.
Actually use a forward operator or $SENDMAIL to resend the message (if you use
the sandbox I publish, the forwarded email will actually be processed by an
external script and deposited into a file, not sent along to your MTA - this
is a benefit because you work with a valid version of your recipe, not
something which has been mangled so as to not actually perform a forward).

How can I correct this?

Start by confirming whether THIS recipe really is the one doing the delivery.
It'd be easy to simply deliver to some OTHER mailbox file, rather than your
INBOX - then if it delivers to your INBOX, you know it isn't this recipe
(though a verbose logfile should easily tell you what is doing the delivery --
unless this is the very last recipe and what you're seeing is the default
delivery because this recipe fell through).



I did sandbox it (but not sufficently so, I suppose) and I have a
catch-all at the end of my rc to file to "Potential_Spam" and not to
$DEFAULT.

I turned on the Verbose before the outer-most condition (instead of the
inner condition like last time) and re-ran it.  Because the receipe didnt
match, it fell through to another receipe 100 lines further down.  That
receipe (obfuscated) says:

:0:
* ^From:.*sbirl at temple dot edu
* ^To:.*sbirl at concept dot temple dot edu
$ORGMAIL


So ... that's what I get for throwing everything to $ORGMAIL.

But now Im wondering if it's better to set 'c' in the outer nest or in the
inner nest.  I think if I put it in the outer (like below) every incoming
email will be copied?


VERBOSE=ON
:0 c
* ^Subject:.*Powerball
* B ?? with an estimated Grand Prize of \$\/[^ ]+
{
        Jackpot=`echo $MATCH | sed 's/,//g'`

        LOG="procmail: Powerball jackpot is \"${Jackpot}\"${NL}"

        #VERBOSE=ON
        # If the Jackpot is over $95 Million, send directly to INBOX
        :0:
        * -95000000^0
        * $ $Jackpot^0
        $ORGMAIL
}



Thanks for the help.
Birl

____________________________________________________________
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>