procmail
[Top] [All Lists]

Re: Problem with matching whole word

2001-09-06 03:47:47
From: Lukas Futera <futik(_at_)futik(_dot_)cz>

I use procmail to filter incoming mail to my server with this
code: 

:0

* EXT2 ?? lukas.futera
|/usr/sbin/sendmail futera_cz_lukas(_at_)my(_dot_)server(_dot_)cz

Btw, I suspect it will do nasty things if you really have that blank line in
your recipe.


EXT2 is a variable filled by qmail - in which is the recipient from the
mail like EXT2="lukas.futera".

But i have a problem with matching the recipient, bcaus if there is for
example onle "futera" or "lukas" it matches "lukas.futera" too. I tried to
use ^^and regexp and things like that - but i didn't ucceed. 

I need the EXACT match with these two strings (one in variable and one in
procmail script) 

It seems to me that if you quote the dot in your recipe, your
problem might go away.  '.' in procmailese means any single
character, and in this case, a space seems to be matching.

Try

        * EXT2 ?? lukas\.futera

-- 
Netcom has imploded.  Please now use NOTnetcom.com for mail.
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Ex-Netcommies:  Mail "forwards" for free forwarding service!
NOT affiliated with EarthLink, Inc.'s Netcom brand identity.

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