procmail
[Top] [All Lists]

Re: recipe AND NOT

2004-06-28 02:35:06
On Sun, Jun 27, 2004 at 07:18:20PM -1000, Michael J Wise wrote:

On Jun 27, 2004, at 6:21 PM, Scott Stark wrote:

:0D
* ^To:.*FRAMEWORKS
* ! ^FROM:*Automatic

Why are you doing CaSe-sEnsItIve matches (":0 D") here?
Is that REALLY REALLY what you want?

I'm assuming the second * line is automatically an AND, correct?
And wouldn't ! be a NOT operator?

Yes and Yes.

The other problem with Scott's recipe is in the second condition.
"^FROM:*Automatic" means a line starting with "FROM" (case-sensitive
because of the D flag, as Michael said), followed by zero or more
colons, followed by "Automatic".  Scott, I think we can usually
expect one colon and some whitespace thereafter.  So even without
the erroneous D flag, you're not going to get much with this until you fix
the second condition.

   * ! ^From:.*Automatic

That's a good start, though it will also block the following words
(from the local dictionary list where I'm typing):

  nonautomatic
  psychoautomatic
  semiautomatic
  semiautomatically
  subautomatic
  telautomatic
  telautomatically
  telautomatics
  unautomatic

*Probably* none of those words is likely to show up as the starting
word in email, but why take the chance when we don't need to?   This
is a narrower match:

  * ! ^From:(.*\<)?Automatic\>

-- 
dman

____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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