How to allow update subject line if update is from specific email address

Hi Landon,

Thank you for your reply. I have created the scrip as you suggested but there is no impact and subject line is still the same. Any suggestions please?

Cheers,
AtifFrom: rt-users [mailto:rt-users-bounces@lists.bestpractical.com] On Behalf Of Landon Stewart
Sent: 13 November 2014 16:51
To: rt-users@lists.bestpractical.com
Subject: Re: [rt-users] how to allow subject line if update is from specific email address

Hi All,

We are using RT 4.2.1. How can we allow a specific email address to update the subject line of ticket in any queue. Any suggestions please?

Regards,
Atif

Hi Atif,

We do this using a scrip (in this case it’d be a global scrip). Update it with the email address in question.

Description:
Update the subject for theemail@address.commailto:theemail@address.com

Condition:
On Correspond

Action: (User defined)
my $attachments = $self->TransactionObj->Attachments;
$attachments->Columns( qw(id Headers Subject) );
my $attachment = $attachments->First;
return 0 unless $attachment;
return 0 unless $self->TicketObj->IsWatcher( Type => ‘Requestor’, Email => ‘theemail@address.commailto:theemail@address.com’ );
my $subject = $attachment->GetHeader(‘Subject’);
return 0 unless $subject;
$self->TicketObj->SetSubject($subject);
return 1;

Template:
Global template: Blank

Stage:
TransactionCreate

Atif Mehboob
Linux Administrator

Eckoh UK Limited
Telford House, Corner Hall
Hemel Hempstead, Hertfordshire HP3 9HN

T 01442 458336
M n/a
W www.eckoh.com

[cid:image0a7d02.PNG@f5b61b57.4f86ce8d]http://www.linkedin.com/company/eckoh-plc [cid:imageb2cf0a.PNG@4f359902.46a5a5c0] http://twitter.com/Eckoh

US Headquarters:
Eckoh, Inc.
11811 N. Tatum Blvd., Suite 3031
Phoenix, AZ 85028

This communication contains information, which is confidential and may also be privileged. It is for the exclusive use of the intended recipient(s) only. If you are not the intended recipient(s) please note that any form of distribution, copying or use of this communication or the information in it is strictly prohibited and may be unlawful. If you have received this communication in error please return it to the sender and then delete it. Opinions expressed in this message are those of the author, and are not binding on the company.
Registered in England and Wales, No. 2796531
Registered office: Telford House, Corner Hall, Hemel Hempstead, Hertfordshire HP3 9HN
A member of the Eckoh Plc group of companies.