procmail
[Top] [All Lists]

Re: sort by size

1997-10-07 10:29:24
Timothy Luoma wrote,

| ... I want to make an action which is  triggered if the message is 1/2 a
| meg or larger:
| 
| A meg is 1048576 right? 

Maybe.  Some define a Mb as 1000 Kb, or 1024000 bytes, so half is 512000.

| So it should be:
| 
| :0
| * B ?? > 524288
| do_this
| 
| But actually I want it to NOT do it, so would that be:
| 
| :0
| * ! B ?? > 524288
| do_this

That would work, and so would this, as long as the condition is not weighted:

  :0
  * B ?? < 524589
  do_this

But be sure you have a recent enough version of procmail that recognizes
search area specifications on size conditions.

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