procmail
[Top] [All Lists]

Re: How to log the size?

1997-07-01 15:58:00
At 09:33 PM, 30 June 1997, Timothy Luoma <luomat(_at_)peak(_dot_)org> wrote:

How do I report the size of an incoming mail to the log?

You can get the size with:

:0
* 1^1 > 1
* 1^0 ^^
{
  SIZE=$=

  LOG="Size: $SIZE
"
}

The first condition sets the score to the size of the message, but
despite what the procmailsc manpage says, it's always 1 too low, so the
second condition adds 1 to the score.

-- 
Aaron Schrab     aaron(_at_)schrab(_dot_)com      http://www.execpc.com/~aarons/
 Deliver yesterday, code today, think tomorrow.

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