Basic postmaster filter help!!

Moderator: crythias

Post Reply
lchennales
Znuny newbie
Posts: 4
Joined: 11 Oct 2011, 17:07
Znuny Version: 2.4.7

Basic postmaster filter help!!

Post by lchennales »

Hi,

I promise I tried for 5 days already, read posts and couln't figure it out. I am REALLY bad at this type of thing!

Here's my problem:

I want emails with different subjects to go automatically to different queues.
My example: I want every email that contains the phrase "I have a question" in the subject to go to a queue called "CI I have a question".
The best thing I came up with was the following, but it doesn't work and I'm lost:

MATCH
Header 1: Subject
Value: %I have a question%

SET:
Header 1: X-OTRS-Queue
Value: CI I have a question

Can anyone please help me with this example??
Thank you so much for your time!!!
crythias
Moderator
Posts: 10169
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Basic postmaster filter help!!

Post by crythias »

the default query doesn't need wildcards, and, as far as I have been able to determine, is case insensitive.
Simply typing
match this line

Should match:
I need you to Match tHIS line here.
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
lchennales
Znuny newbie
Posts: 4
Joined: 11 Oct 2011, 17:07
Znuny Version: 2.4.7

Re: Basic postmaster filter help!!

Post by lchennales »

Hi crythias, thanks for your answer.

I tried what you said and it doesn't work. It simply puts the emails in the default queue and does nothing. Any thoughts?
Here's what I have now and won't work:

MATCH
Header 1: Subject
Value: I have a question

SET:
Header 1: X-OTRS-Queue
Value: CI I have a question

Thanks!
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Basic postmaster filter help!!

Post by jojo »

What is the name of your taget Queue? Is it a subqueue?
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
lchennales
Znuny newbie
Posts: 4
Joined: 11 Oct 2011, 17:07
Znuny Version: 2.4.7

Re: Basic postmaster filter help!!

Post by lchennales »

Hi jojo, thanks for the help.

It is indeed a subqueue.

The original queue is called "Initial contact"
The subqueue where I want to send these emails is called "IC I have a question"

Thanks!
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Basic postmaster filter help!!

Post by jojo »

For a subqueue the syntax is:

Queue::Subqueue
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
lchennales
Znuny newbie
Posts: 4
Joined: 11 Oct 2011, 17:07
Znuny Version: 2.4.7

Re: Basic postmaster filter help!!

Post by lchennales »

jojo, thanks for your answer.

Quick question so I don't have to spend a lot of time with trial & error: On the admin frontend, I should have this?

MATCH
Header 1: Subject
Value: I have a question

SET:
Header 1: X-OTRS-Queue
Value: Queue::Subqueue: CI I have a question

I'm not sure what to put in the last field.

Thanks!
crythias
Moderator
Posts: 10169
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Basic postmaster filter help!!

Post by crythias »

double colons. ::
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
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Basic postmaster filter help!!

Post by jojo »

Value: Initial Contact::CI I have a question
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
Post Reply