[rt-users] Set Subject in if/then clause

Giuseppe Sollazzo gsollazz at sgul.ac.uk
Wed Feb 1 08:18:31 EST 2012


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 01/02/12 13:08, Gerard FENELON wrote:
> Hi Giuseppe
>
> what is your definition of "This doesn't seem to work" ? what is
> the (bad) behaviour that you are seeing ? Does an email get sent or
> not ? What is its subject line and content ? Anything in the logs
> ?
>
> Gerard
>

Hi Gerard,

I should have been clearer but I thought it was evident: the "Subject"
line is not valid Perl, so you can't compile a script built that way.

The question is if there's a standard way to add that directive (a
non-Perl one) within the if-clause.


Thanks,
Giuseppe


> On 2012-02-01 12:03, Giuseppe Sollazzo wrote:
>> Hi, I'm trying to set up a different subject for different queues
>> in the same template (autoreply). This doesn't seem to work:
>>
>> { if ($Ticket->QueueObj->Name eq 'Work Queue') { Subject:
>> Helpdesk Job Logged: {$Ticket->Subject} "Output this"; } elsif
>> ($Ticket->QueueObj->Name eq 'Task Queue') { Subject: Support Job
>> Logged: {$Ticket->Subject} "Output that"; } else { "Output
>> other"; } }
>>
>> Is there a way to get this work?
>>
>> Thanks, Giuseppe
>
> -------- RT Training Sessions
> (http://bestpractical.com/services/training.html) * Boston March 5
> & 6, 2012


- -- 
____________________________________

Giuseppe Sollazzo
Senior Systems Analyst
Computing Services
Information Services
St. George's, University Of London
Cranmer Terrace
London SW17 0RE

Email: gsollazz at sgul.ac.uk
Direct Dial: +44 20 8725 5160
Fax: +44 20 8725 3583

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJPKTumAAoJEAqigArPBfJXdDgH/A1YiWhrj9/ZutVcvP6pYr+4
dYEYG2kK+usaLVdl5hwsSKhITC7hBvEdHBrNocNbFNJERBMSq6+Uj4SJAWKF7K+c
cqc69Uo13VjYjnVECSZVU/NhOG4Xiy0+zJssHmeZN+tDuN7OfBcF309zVfQceveH
i/YBNsuc0yY8X9MVnLg4EgymNDZrezfGOJDbLlUDSeD9lDN9SeCvSH0jsRR3UPYq
f2N0+88mQp+5KwtR/NMN88fX44uBUk3JOJobIrRPtv3Ti7spocXQBZ6JXP52e7Pi
0XFkbcI3JMTYa9voPKHHD7dxkk7/ToAILXIpRP4cIodlDTlGy7ZNnsLH1HZIhzI=
=x7YS
-----END PGP SIGNATURE-----




More information about the rt-users mailing list