2 messages in net.sourceforge.lists.courier-maildrop[maildropl] Problem with regexp
FromSent OnAttachments
Florian LindnerApr 26, 2005 11:04 am 
Thorsten HaudeApr 26, 2005 1:51 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:[maildropl] Problem with regexpActions...
From:Florian Lindner (Flor@xgm.de)
Date:Apr 26, 2005 11:04:48 am
List:net.sourceforge.lists.courier-maildrop

Hello,

I try to construct a regular expression that matches the following strings:

* something (no @ ist allowed) * something@localhost * some@localhost.centershock.net * something@anubis * some@anubis.centershock.net

But not: * mail@xgm.de * some@somedomain.tld

I'm using the lookup() function to look up the regexp from a file:

if ( lookup($ADR, "/etc/adminMails") ) { to "$MDIR/flor@xgm.de" }

My lookup file looks like that:

[^@]*(|@localhost|@localhost\.centershock\.net|@anubis| @anubis\.centershock\.net)

But unfortunatly it also matches the string it should not match.

What is wrong?

Thanks,

Florian