Change default type for requests received by email

Moderator: crythias

Post Reply
jarcto
Znuny newbie
Posts: 5
Joined: 01 Nov 2010, 23:42
Znuny Version: 2.4.7

Change default type for requests received by email

Post by jarcto »

Hi,

I can't find the way to change defualt type for receiving requests from email for example to incident. Ticket::Type is enabled. I'v added some new types (incident, change, task) and made 'default' type to invalid. The priority, the queue can be set, but not the type.

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

Re: Change default type for requests received by email

Post by crythias »

You might choose a postmasterfilter to set the X-OTRS-Type
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
jarcto
Znuny newbie
Posts: 5
Joined: 01 Nov 2010, 23:42
Znuny Version: 2.4.7

Re: Change default type for requests received by email

Post by jarcto »

Thanks for help. Your proposal solved the issue. I've set the following postmasterfilter:

Match:
Header 1: "To:" Value: "(mail1|mail2|...|maiN)@example.com

Set:
Hedare 1: "X-OTRS-Type" Value: "incident"

Is any more convenient way to set filter for all incoming mails?
Wolfgangf
Znuny ninja
Posts: 1029
Joined: 13 Apr 2009, 12:26
Znuny Version: 6.0.13
Real Name: Wolfgang Fürtbauer
Company: PBS Logitek GmbH
Location: Pinsdorf

Re: Change default type for requests received by email

Post by Wolfgangf »

that looks good to me - you can make full use of regular expressions or create more than one postmaster filter
Produktiv:
OTRS 6.0.13/ ITSM 6.0.13
OS: SUSE Linux (SLES 12, Leap), MySql 5.5.x, 5.6.x
Windows 2012 AD Integration (agents and customers), Nagios integration (incidents, CMDB), Survey, TimeAccounting
crythias
Moderator
Posts: 10169
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Change default type for requests received by email

Post by crythias »

I suppose you could use a more generic Match criteria than attempting to match specific emails. Considering you're applying this to every inbound email, why not simply use
Match To: *
??
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
jarcto
Znuny newbie
Posts: 5
Joined: 01 Nov 2010, 23:42
Znuny Version: 2.4.7

Re: Change default type for requests received by email

Post by jarcto »

Because "*" is invalid entry.
crythias
Moderator
Posts: 10169
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Change default type for requests received by email

Post by crythias »

right. ok. but maybe ([a-zA-Z0-9_\-\.]+)@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3}) forinstance.
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
jarcto
Znuny newbie
Posts: 5
Joined: 01 Nov 2010, 23:42
Znuny Version: 2.4.7

Re: Change default type for requests received by email

Post by jarcto »

I've changed your regexp a little bit. Yours doesn't work.

([a-zA-Z0-9_\-\.]+)@example.com is totaly fine, beacuse it is universal for my case. It works.

Thanks for help.
Post Reply