Using the mask "*" in PostMaster Filters

Hi all, I've been trying to match "From: *@example.com", but failing. OTRS does not allow such a mask at the beginning of the value. I could do "From a*@example.com" though and it would allow such. How can I reach what I need above? I would like to match any users @example.com. Thanks and Best Regards, Muhammad El-Sergani.

You should be able to do it without *.
On Sat, Apr 16, 2011 at 5:34 PM, Muhammad El-Sergani
Hi all,
I've been trying to match "From: *@example.com", but failing. OTRS does not allow such a mask at the beginning of the value. I could do "From a*@example.com" though and it would allow such.
How can I reach what I need above? I would like to match any users @example.com.
Thanks and Best Regards, Muhammad El-Sergani.
--------------------------------------------------------------------- OTRS mailing list: otrs - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/otrs To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs

Thanks Gerald,
I'll give it a shot.
On Saturday, April 16, 2011, Gerald Young
You should be able to do it without *.
On Sat, Apr 16, 2011 at 5:34 PM, Muhammad El-Sergani
wrote: Hi all, I've been trying to match "From: *@example.com", but failing. OTRS does not allow such a mask at the beginning of the value. I could do "From a*@example.com" though and it would allow such.
How can I reach what I need above? I would like to match any users @example.com. Thanks and Best Regards, Muhammad El-Sergani.
--------------------------------------------------------------------- OTRS mailing list: otrs - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/otrs To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs
-- Thanks and Best Regards, Muhammad El-Sergani.

Hi all, OTRS is evaluating the postmaster filter as a Perl regular expression and *@example.com is not a valid Regex. You should try .*\@example.com "." means "everything but a newline" in regular expressions. Cheers, Renée On 16.04.2011 23:34, Muhammad El-Sergani wrote:
Hi all,
I've been trying to match "From: *@example.com", but failing. OTRS does not allow such a mask at the beginning of the value. I could do "From a*@example.com" though and it would allow such.
How can I reach what I need above? I would like to match any users @example.com.
Thanks and Best Regards, Muhammad El-Sergani. -- Perl-Magazin: http://perl-magazin.de Perl-Nachrichten: http://perl-nachrichten.de

Thanks Renee, Gerald, Both are working fine. Thanks and Best Regards, Muhammad El-Sergani. On Sun, Apr 17, 2011 at 5:05 PM, Renée Bäcker < mailinglisten@renee-baecker.de> wrote:
Hi all,
OTRS is evaluating the postmaster filter as a Perl regular expression and *@example.com is not a valid Regex. You should try .*\@example.com
"." means "everything but a newline" in regular expressions.
Cheers, Renée
On 16.04.2011 23:34, Muhammad El-Sergani wrote:
Hi all,
I've been trying to match "From: *@example.com", but failing. OTRS does not allow such a mask at the beginning of the value. I could do "From a*@example.com" though and it would allow such.
How can I reach what I need above? I would like to match any users @example.com.
Thanks and Best Regards, Muhammad El-Sergani. -- Perl-Magazin: http://perl-magazin.de Perl-Nachrichten: http://perl-nachrichten.de
--------------------------------------------------------------------- OTRS mailing list: otrs - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/otrs To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs
participants (3)
-
Gerald Young
-
Muhammad El-Sergani
-
Renée Bäcker