procmail
[Top] [All Lists]

RE: Logic, DeMorgan's law, and efficiency

2000-08-09 13:00:22
On Wed, 9 Aug 2000 08:01:42 -0400 (EDT), Dallman Ross
<dman(_at_)nomotek(_dot_)com> wrote:

 >   nonWEST="*=\\?gb2312\\?[bq]\\?"  # useful for character-set testing

Minor issue: the leading star needs to be escaped, or -- if I
understand your intentions correctly -- removed altogether.

Ah.  Thanks.  I actually don't know why it's there, since
I got the expression from the list at some point, so I can't
tell whether it's save to remove altogether or not either.  :-)

I believe you can avoid some backslashitis by using single quotes
instead of double. (Too lazy to check this ...)

Next time I get a "hit" on the recipe, I'll save the message and
try it with different quoting.  Thanks.

 > But then it occured to me that, with DeMorgan's Law, I probably
 > should be able to do this?
 >
 >    :0
 >    * ! $ FROM    ?? $nonWEST
 >    * ! $ SUBJECT ?? $nonWEST
 >    { }
 >
 >    :0 E  # else . . .
 >    { RECIPE = "${RECIPE:+$RECIPE }UBE_03" }

Yes, this looks correct. FWIW, I went through similar pains when
trying to figure out how to write the `experiments.rc' file which is
part of the FAQ. Originally I started out with two recipes but I
lumped them together using this same technique.

Glad to know this kind of stuff has the capacity to flatten
the best among us (and not just li'l ol' me), if only for a
minute or two.  :-)

--
Dallman Ross <dman(_at_)nomotek(_dot_)com>
U.S. Voicemail/FAX: +1 (415) 680-2388
Residence Telephone: +49 (0) 6122 / 98 04 46
Cellular Telephone: +49 (0) 177 / 515 34 69
Fight Spam! Join CAUCE! == http://www.cauce.org/ or
http://www.euro.cauce.org/
N.B.: For no auto-reply, use <mailto:dman+noacks(_at_)nomotek(_dot_)com>



_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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