Moving unrecognized client to a specific queue - Generic Agent

Moderator: crythias

Locked
rzima
Znuny newbie
Posts: 25
Joined: 04 Aug 2016, 08:37
Znuny Version: 6.0.13
Real Name: rzima

Moving unrecognized client to a specific queue - Generic Agent

Post by rzima »

Hi,

I try to add a task to the generic agent, that move new ticket to the queue unrecognized customers. When a customer user sends a e-mail ticket to address helpdesk@mydomain.com by default goes to queue Raw, however, if the customer does not exist in the database agent should him to move up the queue unrecognized customers.

How to create a task with exclusion. What could advice me?
generic agent.jpg
You do not have the required permissions to view the files attached to this post.
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: Moving unrecognized client to a specific queue - Generic Agent

Post by reneeb »

You need to write a postmaster filter for that. https://gist.github.com/reneeb/930cc513fece99dfeb67 should be a good base for that. Replace lines 58 to 65 with

Code: Select all

     $Param{GetParam}->{'X-OTRS-Queue'} = 'UnrecognizedCustomers' if !%CustomerList;
And you need to register the postmaster filter: https://gist.github.com/reneeb/7308b1cb ... tfile1-txt

(Of course, you have to change the package name in the .pm and in the config )
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
rzima
Znuny newbie
Posts: 25
Joined: 04 Aug 2016, 08:37
Znuny Version: 6.0.13
Real Name: rzima

Re: Moving unrecognized client to a specific queue - Generic Agent

Post by rzima »

I Edit filter from link. Delete lines from 58-65 and paste:

Code: Select all

$Param{GetParam}->{'X-OTRS-Queue'} = 'UnrecognizedCustomers' if !%CustomerList;
Next registering filter by adding lines to Config.pm

Code: Select all

$Self->{'PostMaster::PostFilterModule'}->{'010-myFilter'} = {
    Module => 'Kernel::System::PostMaster::Filter::myFilter',
};
When retrieving mails, shows an error and ticket is loops. He gets a lot of copies of the same ticket
What is wrong in filter?

/otrs/Kernel/System/Postmaster/Filter/myFilter.pm
myFilter.txt
You do not have the required permissions to view the files attached to this post.
Locked