procmail
[Top] [All Lists]

Re: filter based on "From: " content

2020-11-17 08:40:30

On 2020-11-17 13:36, Vlado Keselj wrote:

Are you saying that something like

  :0
  * ^From:.*joe(_at_)mysite(_dot_)org
  * ^To:.*joe(_at_)mysite(_dot_)org
  spam

would not work?

Unanchored regexen kill kittens!

After some tweaks:

  :0HD
  * ^From:[ ]+["][a-z\.\-]+@mysite[.]org"[ ]+[<]
  * some-other-condition(s)
  spam/

-- Ruud
____________________________________________________________
procmail mailing list -- procmail(_at_)lists(_dot_)rwth-aachen(_dot_)de   
Procmail homepage: http://www.procmail.org/
To unsubscribe send an email to 
procmail-leave(_at_)lists(_dot_)rwth-aachen(_dot_)de
https://lists.rwth-aachen.de/postorius/lists/procmail.lists.rwth-aachen.de

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