[SOLVED] Emails Filters Not Working

Moderator: crythias

Post Reply
jason123
Znuny newbie
Posts: 33
Joined: 25 Apr 2016, 15:27
Znuny Version: OTRS 5

[SOLVED] Emails Filters Not Working

Post by jason123 »

Hello,

I have set up a Mail account on my system to pull in emails from Gmail through IMAPS. When I run the fetch command, it pulls in 7 emails of which only 1 matches the filter. The filter does implement the conditionals which is good, but I do not want OTRS to pull in the other 6 emails, or at least not to create tickets from them.

How do I get otrs to stop creating tickets on emails that do not match the filter?

Note: I have tried both stop after match = yes and = no in the postmaster filter, neither seems to do anything.

Thanks,
joson123
Last edited by jason123 on 12 Jun 2017, 21:51, edited 1 time in total.
root
Administrator
Posts: 3934
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: Emails Filters Not Working

Post by root »

OTRS fetches all e-mails. Usually one uses OTRS to communicate with OTRS and not with an e-mail client anymore. The Postmaster Filter affect only the behavior within OTRS after they were fetched.
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO

Use a test system - always.

Do you need professional services? Check out https://www.znuny.com/

Do you want to contribute or want to know where it goes ?
jason123
Znuny newbie
Posts: 33
Joined: 25 Apr 2016, 15:27
Znuny Version: OTRS 5

Re: Emails Filters Not Working

Post by jason123 »

Hello root,

Thank you for your prompt response.

It works for me that OTRS pulls in all the emails, but it generates a ticket for ever email pulled in. Is there a way to ignore non-filtered emails so only the desired tickets are created?

Thanks
root
Administrator
Posts: 3934
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: Emails Filters Not Working

Post by root »

Hi,

Yes, this is possible. Check the manual: http://doc.otrs.com/doc/manual/admin/st ... rs-headers The X-OTRS-Ignore header should the one you're looking for.

- Roy
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO

Use a test system - always.

Do you need professional services? Check out https://www.znuny.com/

Do you want to contribute or want to know where it goes ?
jason123
Znuny newbie
Posts: 33
Joined: 25 Apr 2016, 15:27
Znuny Version: OTRS 5

Re: Emails Filters Not Working

Post by jason123 »

root, thank you so much, this worked.

My other issue with the filters is that the queue in the filter is not getting assigned, the default from SysConfig is getting assigned not the queue set in the filter.

Thanks again,
jason123
jason123
Znuny newbie
Posts: 33
Joined: 25 Apr 2016, 15:27
Znuny Version: OTRS 5

Re: Emails Filters Not Working

Post by jason123 »

Never mind, the filters queues are being set.

root, thanks again.
Post Reply