ViewCompose Format

English! place to talk about development, programming and coding
Post Reply
sputtala
Znuny newbie
Posts: 21
Joined: 21 Jan 2013, 14:40
Znuny Version: 2.4.7

ViewCompose Format

Post by sputtala »

I've been experimenting with the fields, and basically, this is what I've
been able to reach:

- $QData{"OrigFrom"} -- places the original From part, name and email
- $QData{"To"} -- places the current To part, name and email
- $QData{"OrigTo"} -- gets nothing...

Could anyone help with this please?

Regards
Satyam
sputtala
Znuny newbie
Posts: 21
Joined: 21 Jan 2013, 14:40
Znuny Version: 2.4.7

Re: ViewCompose Format

Post by sputtala »

No one knows the answer??
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: ViewCompose Format

Post by jojo »

what do you wan't to know?
"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
sputtala
Znuny newbie
Posts: 21
Joined: 21 Jan 2013, 14:40
Znuny Version: 2.4.7

Re: ViewCompose Format

Post by sputtala »

By Default OTRS will give the below response format when replying to a ticket

$QData{"Salutation"}
$TimeShort{"$QData{"Created"}"} -
$QData{"OrigFromName"} $Text{"wrote"}:
$QData{"Body"}
$QData{"StdResponse"}
$QData{"Signature"}

but we modified as per my request like below

$QData{"Salutation"}
$QData{"StdResponse"}
$QData{"Signature"}

From: $QData{"OrigFromName"} [ $QData{"OrigFrom"} ]
Sent: $TimeLong{"$QData{"Created"}"}
To: $QData{"OrigTo"}
Cc: $QData{"OrigCc"}
Subject: $QData{"Subject"}
$QData{"Body"}

but the $QData{"OrigTo"} is not displaying anything. I would like to display the To address of the previous email. Can any one help me in this ??
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: ViewCompose Format

Post by reneeb »

If $Data{"To"} is not sufficient, you have to change Perl code (Kernel/Modules/AgentTicketCompose)...
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
sputtala
Znuny newbie
Posts: 21
Joined: 21 Jan 2013, 14:40
Znuny Version: 2.4.7

Re: ViewCompose Format

Post by sputtala »

I have looked at AgentTicketCompose Section but did not get what do change, where to change. Can you please guide me to achieve this task ??
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: ViewCompose Format

Post by reneeb »

Search for "OrigFrom" in that file. What to do? I don't know which data you want in "OrigTo".
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
sputtala
Znuny newbie
Posts: 21
Joined: 21 Jan 2013, 14:40
Znuny Version: 2.4.7

Re: ViewCompose Format

Post by sputtala »

For Instance, I got an ticket/email from a@xyz.com and the below are the sample ticket/email details

From: a@xyz.com
To:b@xyz..com
Subject: Sample Test
Date: Some date here

Hello John,

This is the test mail

Regards
John

and we are replying to a@xyz.com, I want the following format/details in body of the ticket

............
....................
..............................
....................................


From: a@xyz.com
To:b@xyz..com
Subject: Sample Test
Date: Some date here

Hello John,

This is the test mail
Post Reply