procmail
[Top] [All Lists]

Re: Procmail Filters with AND?????

1997-02-07 07:11:31
On Fri, 7 Feb 1997 02:57:08 -0800 (PST) dnhunt(_at_)rain(_dot_)org (mailbox) 
wrote:

              :0D
              * \<CCOAR\>
              {
                      :0HBD:
                      * \<FAVNET\>
                      path_to_folder
              }

You could also do it in a single recipe:

:0
* CCOAR
* HB ?? FAVNET
path_to_folder

Notice that my regular expressions are more lax than in the original
example.  The ":0D" makes comparisons case sensitive, which you may or
may not want; the "\< \>" around a string says that the string has to
match a word delimited by whitespace, rather than any substring.  Mix
and match the two recipes until you get what you want.

The line:

* HB ?? FAVNET

Tells procmail to search both the header AND body for favnet, rather
than just the header.

-- Lars

---
Lars Kellogg-Stedman * lars(_at_)bu(_dot_)edu * (617)353-8277
Office of Information Technology, Boston University

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