procmail
[Top] [All Lists]

Re: Blocking "re: ]"

2004-07-28 16:27:40
* David W. Tamkin <dattier(_at_)panix(_dot_)com> [2004-07-28 15:39]:

No, that's not it.  The right bracket is special only if there's
been a left bracket to start a character class description (and not
always then).

So it seems Priscila's original recipe is correct - because she is not
escaping the right bracket, and has no need to.

Priscila, my guesses are

1. The invisible text between "re:" and the right bracket isn't
exactly one space; it might be multiple spaces or a tab.

2. The condition was right-anchored; maybe there's more whitespace
after the right bracket.

So I'd suggest

 :0:
 * ^Subject:.*re:[    ]+]
 re-right-bracket

I think Priscila's problem is over matching, not under matching.  So
this version above is even more general, and will match even more.  

I have no idea why her recipe would match subject lines that are not
part of her expression.  Maybe this is a procmail bug?


____________________________________________________________
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>