[SOLVED] Set SUB queue in Postmaster filter

Moderator: crythias

Locked
Rick
Znuny newbie
Posts: 57
Joined: 30 Apr 2015, 09:24
Znuny Version: 4.0.7

[SOLVED] Set SUB queue in Postmaster filter

Post by Rick »

Hello,

I want to set the ticket queue with postmaster filter, but i have a little problem.

For example, in the body i have :
#queue=Sub-Raw

And in my filter :
Check email header : #queue=(.*)
But when i want to Set email header like this : [***] , i cannot, because it's a sub queue.
I have to do : Raw::Sub-Raw and i have SubRaw.

It's possible to do this ?

Thanks in advance.
Last edited by Rick on 13 May 2015, 16:22, edited 1 time in total.
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: Set SUB queue in Postmaster filter

Post by reneeb »

This is only doable with a custom Postmaster filter (Perl module) where you define a mapping of possible values in the mail to the queues.
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
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Set SUB queue in Postmaster filter

Post by crythias »

You could match exactly sub-raw and set Queue::Sub-Raw.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
Rick
Znuny newbie
Posts: 57
Joined: 30 Apr 2015, 09:24
Znuny Version: 4.0.7

Re: Set SUB queue in Postmaster filter

Post by Rick »

I do something like this but don't work :

body of email :
#queue=Sub-Raw

Filter :
Checked email header : body
Look for value : #queue=(.*)

Set email Header : X-OTRS-Queue
Set Value : Queue::[***]

Where is my mistake ?
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: Set SUB queue in Postmaster filter

Post by reneeb »

You need to set the "Full Qualified Queue Name" (all parent queues and the sub queue name)... So you have to set Queue::Sub-Queue and not Sub-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
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Set SUB queue in Postmaster filter

Post by crythias »

Didn't work is impossible to troubleshoot. Look for logs and error messages. New ticket or followup? Literal values or substitutions listed here. Match case and space.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
Rick
Znuny newbie
Posts: 57
Joined: 30 Apr 2015, 09:24
Znuny Version: 4.0.7

Re: Set SUB queue in Postmaster filter

Post by Rick »

Work good. Thank's bro'.
Very helping forum !! :D
Locked