Filter a whole TLD

Moderator: crythias

Post Reply
FairFight
Znuny newbie
Posts: 14
Joined: 29 Sep 2011, 22:51
Znuny Version: 3.0.10

Filter a whole TLD

Post by FairFight »

Hello,
I am trying to filter a whole TLD to sort it into a queue for it self.
I have set up the following settings as a filter, but they are not doing anything:

Stop after match: No

Filter conditions
Header 1: From
Value 1: ([.*?]).dk

Set Email Headers
Header 1: X-OTRS-QUEUE
Value 1: Postmaster_dk
FairFight
Znuny newbie
Posts: 14
Joined: 29 Sep 2011, 22:51
Znuny Version: 3.0.10

Re: Filter a whole TLD

Post by FairFight »

Still need help on this one.
Wolfgangf
Znuny ninja
Posts: 1029
Joined: 13 Apr 2009, 12:26
Znuny Version: 6.0.13
Real Name: Wolfgang Fürtbauer
Company: PBS Logitek GmbH
Location: Pinsdorf

Re: Filter a whole TLD

Post by Wolfgangf »

how about a search pattern like this:
.*\@.*\.dk
Produktiv:
OTRS 6.0.13/ ITSM 6.0.13
OS: SUSE Linux (SLES 12, Leap), MySql 5.5.x, 5.6.x
Windows 2012 AD Integration (agents and customers), Nagios integration (incidents, CMDB), Survey, TimeAccounting
reneeb
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: Filter a whole TLD

Post by reneeb »

The regexp should be something like

\.dk$

And the filter should stop after match, otherwise the next filter could move the ticket in an other queue.
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
FairFight
Znuny newbie
Posts: 14
Joined: 29 Sep 2011, 22:51
Znuny Version: 3.0.10

Re: Filter a whole TLD

Post by FairFight »

None of those work.
I am using OTRS 3.0.11.
Post Reply