procmail
[Top] [All Lists]

Re: Skipping script for users with a "." in their username

2003-10-13 15:21:02
At 12:08 2003-10-13 -0600, Linux wrote:
All,

.. since that's what a list post is.

I am testing new software and I want to run this globally except that it
doesn't work if the user has a "." in their username, for example,
foo(_dot_)bar(_at_)domain(_dot_)com(_dot_)

Rephrase: you're using something you didn't write, and it's broken, apparently for the contents of a To: address field (or perhaps Cc: or other addresses as well). You want to run it only with messages it wouldn't break on. Correct?

My first suggestion is: don't use broken software. Advise it's author that there is a bug. If you have source, try to fix the damn thing.

* ^To:.*[^      ]*\.[^  ]*(_at_)domain\(_dot_)com

Should give you a starting point, but it isn't optimal. I'm pressed for time right now.

Something like:

* !^To:(_dot_)*\(_dot_)(_at_)domain\(_dot_)com

don't match if the To: contains a literal "(_dot_)(_at_)doman(_dot_)com"

---
 Sean B. Straw / Professional Software Engineering

 Procmail disclaimer: <http://www.professional.org/procmail/disclaimer.html>
 Please DO NOT carbon me on list replies.  I'll get my copy from the list.


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