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?
Moving unrecognized client to a specific queue - Generic Agent
Moderator: crythias
Moving unrecognized client to a specific queue - Generic Agent
You do not have the required permissions to view the files attached to this post.
-
- 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
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
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 )
Code: Select all
$Param{GetParam}->{'X-OTRS-Queue'} = 'UnrecognizedCustomers' if !%CustomerList;
(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
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
Re: Moving unrecognized client to a specific queue - Generic Agent
I Edit filter from link. Delete lines from 58-65 and paste:
Next registering filter by adding lines to Config.pm
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
Code: Select all
$Param{GetParam}->{'X-OTRS-Queue'} = 'UnrecognizedCustomers' if !%CustomerList;
Code: Select all
$Self->{'PostMaster::PostFilterModule'}->{'010-myFilter'} = {
Module => 'Kernel::System::PostMaster::Filter::myFilter',
};
What is wrong in filter?
/otrs/Kernel/System/Postmaster/Filter/myFilter.pm
You do not have the required permissions to view the files attached to this post.