procmail
[Top] [All Lists]

testing for only the subject and the body (was Re: Testing for alternate Environment variables)

1997-06-12 12:19:00

Message has been automatically signed by PGPsendmail 1.4,
available from ftp.atnf.csiro.au:pub/people/rgooch


-----BEGIN PGP SIGNED MESSAGE-----

From: era eriksson <era(_at_)iki(_dot_)fi>
Date: Sat  Jun  7,  7:46pm

On Fri, 6 Jun 1997 19:16:08 -0700 (PDT),
ariel(_at_)best(_dot_)com (Catherine Hampton) wrote:
 > :0
 > * (TAG1 ?? yes|\
 >    TAG2 ?? yes|\
 >    TAG3 ?? yes)
 > /dev/null

Old de Morgan is on your side:

    :0
    * ! TAG1 ?? ^^yes^^
    * ! TAG2 ?? ^^yes^^
    * ! TAG3 ?? ^^yes^^
    { }

    :0E
    /dev/null

Refer back to recent discussion about similar recipes. 

I'd like to do something like:

:0:
*(^subject: .*foo|B??foo)
*(^subject: .*bar|B??bar)
folder

With experimentation, I cannot get this to work.  I'd like to match both
"foo" and "bar" only if they're on the subject line or somewhere in the
body.  I don't want to do:

:0HB:
*foo
*bar
folder

because "foo" or "bar" may occur somewhere else in the header (which I'm
not interested in).

And I'd prefer not to do:

:0:
*^subject: .*foo
*^subject: .*bar
folder
:EB:
*foo
*bar
folder
:E:
*^subject: .*foo
*B??bar
folder
:E:
*B??foo
*^subject: .*bar
folder

Thanks for any help.

/* era */

-- 
Defin-i-t-e-ly. Sep-a-r-a-te. Gram-m-a-r.  <http://www.iki.fi/~era/>
 * Enjoy receiving spam? Register at <http://www.iki.fi/~era/spam.html>

- -- 
mailto:dummy(_at_)cyberpass(_dot_)net                             In sunny 
Berkeley, CA
http://www.cyberpass.net/~dummy/robert                 waiting for The Big One
    >> I'm pro-child and anti-birth, and I vote. <<     
     >> Support your local Planned Parenthood. <<      (510) 464-4604


-----BEGIN PGP SIGNATURE-----
Version: 2.6.2

iQB1AwUBM6BD29CFOCNWKXb9AQHxvAL/aT60KFcAUB0Qa4T7n6T9lWqdjdtDmqv2
hda5VGb6qYO7qSQFmHjVRG8ymHiS12/ahPmS2ocGL1oNDCWiRz05kyQvl/XuVNBD
yKN6TACEpXMujKRRQ2+ifC7600xO4o1C
=17k8
-----END PGP SIGNATURE-----

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