Problem with regexp in Postmaster filter

Moderator: crythias

Post Reply
Eclat2k
Znuny newbie
Posts: 44
Joined: 07 Jun 2011, 18:48
Znuny Version: 3.08
Real Name: Pablo
Company: 2KSystems
Location: Ferrol, A Coruña (Spain)

Problem with regexp in Postmaster filter

Post by Eclat2k »

I think that it's ok, but... My memory must be failing...

I want that emails from customer1@gmail.com, customer2@gmail.com, customer3@hotmail.com goes to a specific queue and I have:

From: (customer1|customer2)@gmail.com;customer3@hotmail.com
X-OTRS-Queue: MyQueue

But don't works. is the regexp wrong?
System:
OTRS 3.0.10/ ITSM 3.0.4
OS: Debian 6.02 in a VirtualMachine in Windows Server 2008 with VirtualBox, MySql 5.0.x
jojo
Znuny guru
Posts: 15019
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Problem with regexp in Postmaster filter

Post by jojo »

Try ((customer1|customer2)@gmail.com|customer3@hotmail.com)
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
Eclat2k
Znuny newbie
Posts: 44
Joined: 07 Jun 2011, 18:48
Znuny Version: 3.08
Real Name: Pablo
Company: 2KSystems
Location: Ferrol, A Coruña (Spain)

Re: Problem with regexp in Postmaster filter

Post by Eclat2k »

Ok, i'll try it and inform you. Thank you.

I am thinking that... will be the problem the subqueue? I want assign this tickets to subqueue MyQueue::MySubqueue, the format in the postmaster filter is correct, true?

X-OTRS-Queue -> MyQueue::SubQueue

Is this ok, isn't it?
System:
OTRS 3.0.10/ ITSM 3.0.4
OS: Debian 6.02 in a VirtualMachine in Windows Server 2008 with VirtualBox, MySql 5.0.x
jojo
Znuny guru
Posts: 15019
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Problem with regexp in Postmaster filter

Post by jojo »

yes, this is correct
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
Post Reply