procmail
[Top] [All Lists]

Re: Size of the message

2005-04-18 11:13:03
On Mon, Apr 18, 2005 at 08:05:02PM +0300, Udi Mottelo wrote:

      Does procmail count the size of the message every time
      that I use "<" or ">"?  or it saves the number somewhere?

      I have more then 5 recipes that start with:

* < 5000000

      Now, I wander if it's silly to do so.  Any idea?

I suppose it might cache the info; but it's sill to do that way,
yes.  :-)  Set a var.

  :0
  * < 5000000
  { LT5000K = yes }


  :0
  * LT5000K ?? ^^yes^^
  * some other condition(s)
  | some_action


Or use nested braces.


 :0
 * < 5000000
 {
    # everything in this nested brace-set is < 5000000

    :0  f l a g s
    * condition(s)
    some_action

    etc.

  }
    

-- 
dman

____________________________________________________________
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