Tickets/Email

Moderator: crythias

Locked
barrett
Znuny newbie
Posts: 6
Joined: 28 Nov 2012, 22:26
Znuny Version: OTRS 3.1
Real Name: Edward
Company: Barrett Technology

Tickets/Email

Post by barrett »

I would like to change the way tickets are added into the database. When support emails are fetched from the server and entered as tickets, I'd like to change the subject and body of the emails/tickets. How can I do this, or what script should I edit to do this?
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Tickets/Email

Post by jojo »

Postmaster Filter
"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
barrett
Znuny newbie
Posts: 6
Joined: 28 Nov 2012, 22:26
Znuny Version: OTRS 3.1
Real Name: Edward
Company: Barrett Technology

Re: Tickets/Email

Post by barrett »

Where is that located?
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Tickets/Email

Post by jojo »

in the admin interface
"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
barrett
Znuny newbie
Posts: 6
Joined: 28 Nov 2012, 22:26
Znuny Version: OTRS 3.1
Real Name: Edward
Company: Barrett Technology

Re: Tickets/Email

Post by barrett »

I see why you directed me there. However, in order to change it the way I'd like, I need to access a MySQL database for information, therefore I think I'd have to edit the actual script perhaps.
A list of customers is in the MySQL database, and I want to check that list, see if the email is recognized as a customer, then append, say "Recognized Customer" to the subject of the email before OTRS ingests it.
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Tickets/Email

Post by jojo »

check Kernel/System/Postmaster.pm (and subfolder). OTRS is already checking if the mail is from a customer to assign CustomerUser and CustomerID to the ticket
"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
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: Tickets/Email

Post by reneeb »

You have to write your own PostmasterFilter (see thread viewtopic.php?f=61&t=18186&p=71564&hili ... ter#p71564)
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
barrett
Znuny newbie
Posts: 6
Joined: 28 Nov 2012, 22:26
Znuny Version: OTRS 3.1
Real Name: Edward
Company: Barrett Technology

Re: Tickets/Email

Post by barrett »

I don't think that will work. It needs to edit the actual email subject and body before the email is entered into OTRS. What is the script that actually creates a ticket from an email, and what is the script that actually harvests emails for OTRS?
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Tickets/Email

Post by crythias »

barrett wrote: It needs to edit the actual email subject and body before the email is entered into OTRS
Then you should do this at the point it enters the mailbox.
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: Tickets/Email

Post by jojo »

check Kernel/System/Postmaster.pm (and subfolder). OTRS is already checking if the mail is from a customer to assign CustomerUser and CustomerID to the ticket
"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
barrett
Znuny newbie
Posts: 6
Joined: 28 Nov 2012, 22:26
Znuny Version: OTRS 3.1
Real Name: Edward
Company: Barrett Technology

Re: Tickets/Email

Post by barrett »

Crythias,
It may not be a strictly OTRS issue, but do you have any idea how that might be done?
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: Tickets/Email

Post by reneeb »

@barret: That's what PostMaster-Pre-Filters are for. You can change the values of the mail before the ticket is created...
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
barrett
Znuny newbie
Posts: 6
Joined: 28 Nov 2012, 22:26
Znuny Version: OTRS 3.1
Real Name: Edward
Company: Barrett Technology

Re: Tickets/Email

Post by barrett »

What/where are PostMaster prefilters and how can I change them?
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: Tickets/Email

Post by reneeb »

reneeb wrote:You have to write your own PostmasterFilter (see thread viewtopic.php?f=61&t=18186&p=71564&hili ... ter#p71564)
have you read the post that I've linked?
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