Filter Condition Mulitple e-mail adresses

Moderator: crythias

Locked
jehe
Znuny newbie
Posts: 2
Joined: 13 Aug 2014, 08:33
Znuny Version: 3.3.6
Real Name: Jeanette Hede
Company: Prime Cargo

Filter Condition Mulitple e-mail adresses

Post by jehe »

Challenge:
Have a customer writes from different e-mail adresses. How do I filter this to same queue?

____________________________________________

Customer firm = AAA
Customer e-mail 1 = @AAA.com
Customer e-mail 2 = @AAB.com
Customer e-mail 2 = @AAC.com
Queue = AAA

____________________________________________

I set Filter Condition Header 1 as "From" value .*@AAA.com
If i try to set header 2 as "From" with value .'@AAB.com Header 1 disappear.
Tried with .*@AAA.com;.'@AAB.com - also not working.


So my question is - is it possible to set that e-mails coming from @AAA.com, @AAB.com and @AAC.com should go in the same queue?
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 Condition Mulitple e-mail adresses

Post by reneeb »

The Regex should look like

Code: Select all

\@(AAA\.com|AAB\.com|AAC\.org)$
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
jehe
Znuny newbie
Posts: 2
Joined: 13 Aug 2014, 08:33
Znuny Version: 3.3.6
Real Name: Jeanette Hede
Company: Prime Cargo

Re: Filter Condition Mulitple e-mail adresses

Post by jehe »

reneeb wrote:The Regex should look like

Code: Select all

\@(AAA\.com|AAB\.com|AAC\.org)$


Thank you reneeb :)

Just to make sure I set up everything correct, could you try to make the Regex for me with the below e-mail adresses

root@localhost.com
root@localhost.dk
root@intern-localhost.com

E-mails from all 3 e-mail adresses need to go to same queue.
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 Condition Mulitple e-mail adresses

Post by reneeb »

Code: Select all

^root\@(localhost\.com|localhost\.dk|intern-localhost\.com)$
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
Locked