procmail
[Top] [All Lists]

Re: Filtering out mail without a "From" header

2000-01-26 17:46:40
"David W. Tamkin" <dattier(_at_)mcs(_dot_)net> writes:
Liviu Daia suggested to Dominic Mitchell,

|      :0:
|      * ! ^From:
|      spam
| 
|      :0:
|      * ! ^(To|Cc):
|      spam
| 
|      :0:
|      * ! ^Received:
|      spam

Question for Philip and the other cognoscenti: how do those three recipes
compare for efficiency to this?

    :0
    * ^From:
    * ^(To|Cc):
    * ^Received:
    { }
    :0E:
    spam

The latter will be barely faster for non-spam (fewer recipes involved)
and infinitesimally slower for some spam (more conditions to be scanned).


Philip Guenther