procmail
[Top] [All Lists]

Re: question about a recipe

1998-11-21 15:52:34
Maybe I've overlooked something, but I don't think procmail
recognizes the || operator like you seem to be expecting. My
interpretation of 'a||b' from procmail's standpoint is, match
'a' or match the empty string or match 'b'. I think that might
be the basis of your problem. I think you might have better
luck with:

* ((^Subject:.*spam error)|(^From:.^landau)|(^From:.*physics))

Note the single '|'. Also the spaces are significant, so I
removed the extraneous spaces around the || tokens, and
added colons after the header tags. It's still not really
an optimal regexp, but I think it is closer to what you
are trying to accomplish...


                        tw

On 11/21/1998 12:47 -0800, Peter Jay Salzman wrote:
     hi there
     
     this line in my rc.spam file:
         * ((^Subject.*spam error) || (^From.*landau) || (^From.*physics))
     
     matched on this header:
        From lkjnntat(_at_)sienet(_dot_)hu  Sat Nov 21 12:17:06 1998
        Return-Path: <lkjnntat(_at_)sienet(_dot_)hu>
        Received: from itg-inet-02.tv-asahi.co.jp by landau.ucdavis.edu.
        (SMI-8.6/SMI-SVR4)
        id MAA10620; Sat, 21 Nov 1998 12:17:01 -0800
        From: lkjnntat(_at_)sienet(_dot_)hu
        To: Friend(_at_)public(_dot_)com
        Date: Sat, 21 Nov 98 14:41:16 EST
        Subject: Make $$$ For the Holidays
     
     i guess i can sort of see why--the 3rd line in the header (although i
     thought matching was case sensitive).   i need to receive email from
     landau.ucdavis.edu and physics.ucdavis.edu which will not have my name 
on
     it.  these letters must go into $DEFAULT.
     
     can someone think of a way to match letters which specifically come from
     these two hosts without having the Received: header trip a match?
     
     thanks!
     pete
     
     --
     Check out my homepage: http://landau.ucdavis.edu/psalzman/index.html
     
-=><=-+-+-=><=-+-+-=><=-+-+-=><=-+-+-=><=-+-+-=><=-+-+-=><=-+-+-=><=-+-+-=><=-
     Do you hate spam? Join the Coalition Against Unsolicited Commercial 
Email
     (CAUCE) at http://www.cauce.org. Actions speak louder than words. Join 
Today!
     
          I BOYCOTT ANY COMPANY THAT USES MASS ADVERTISING ON THE INTERNET
End of included message



-- 
+--------------------------------------+------------------------------------+
| Tim Walberg                          | Phone:  (847) 632-3407             |
| Motorola CE/ITS                      | Pager:  (800) SKY-TEL2 PIN:1384689 |
| 1475 W Shure Dr. IL75-2H14           | FAX:    (847) 632-5769             |
| Arlington Heights, IL 60004          |                                    |
+--------------------------------------+------------------------------------+
| http://www.cig.mot.com/~walberg      | E-mail: 
walberg(_at_)cig(_dot_)mot(_dot_)com,       |
| http://www.skytel.com/Paging (pager) |         1384689(_at_)skytel(_dot_)com 
(pager) |
+--------------------------------------+------------------------------------+

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