procmail
[Top] [All Lists]

help with scoring & size condition

2003-01-10 15:53:08
Hi All,

I'm having a problem with a scoring recipe, in which
I want one of the conditions to hinge on the message
size.   Let's say i want to match messages greater
than 5000 bytes (temporarily ignoring the other scoring
conditions):

:0
* -1^0
*  2^0 > 5000
{
   LOG="SIZE GREATER THAN 5000${NEWLINE}"
}


When i feed this recipe a 2-line text message less than 1K
in size, the recipe still matches, and the verbose log says:


procmail: [18798] Fri Jan 10 17:15:00 2003
procmail: Score:      -1      -1 ""
procmail: Score:       2       1 "> 5000"
procmail: Assigning "LOG=SIZE GREATER THAN 5000
"
SIZE GREATER THAN 5000
From mattg(_at_)assembly(_dot_)state(_dot_)ny(_dot_)us  Fri Jan 10 17:14:59 2003
 Subject: test1
  Folder: /var/spool/mail/root                                              709



In fact I can't find a message, no matter how large or small,
that will not match that recipe.  Am i doing something wrong?
My Procmail version info is below.  This is on AIX 4.3.3.
Procmail is being called as the local mailer by sendmail.
Thanks in advance for any clues!

-Matt



procmail v3.22 2001/09/10
    Copyright (c) 1990-2001, Stephen R. van den Berg    <srb(_at_)cuci(_dot_)nl>
    Copyright (c) 1997-2001, Philip A. Guenther         
<guenther(_at_)sendmail(_dot_)com>

Submit questions/answers to the procmail-related mailinglist by sending to:
        <procmail-users(_at_)procmail(_dot_)org>

And of course, subscription and information requests for this list to:
        <procmail-users-request(_at_)procmail(_dot_)org>

Locking strategies:     dotlocking, fcntl(), lockf()
Default rcfile:         $HOME/.procmailrc
Your system mailbox:    /var/spool/mail/root


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