<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#ffffff">
    <br>
    -----BEGIN PGP SIGNED MESSAGE-----<br>
    Hash: SHA1<br>
    <br>
    On 01/02/12 13:30, Gerard FENELON wrote:<br>
    <span style="white-space: pre;">> Try something like<br>
      > <br>
      > Subject: { if ($Ticket->QueueObj->Name eq 'Work
      Queue') { "Helpdesk<br>
      > Job Logged: {$Ticket->Subject} Output this"; } elsif<br>
      > ($Ticket->QueueObj->Name eq 'Task Queue') { "Support
      Job Logged:<br>
      > {$Ticket->Subject} Output that"; } else { "Output
      other"; } }<br>
      > <br>
      > In other words, your perl script should return a string.<br>
      > <br>
      > Gerard</span><br>
    <br>
    Hi Gerard,<br>
    I begin to understand.<br>
    <br>
    However, there is a problem with the {$Ticket->Subject} which
    I'm not<br>
    sure I know how to deal with<br>
    <br>
    I get a subject line like:<br>
    *Helpdesk Job Logged: {RT::Ticket=HASH(0x1034ec88)->Subject}
    Output that*<br>
    <br>
    which suggests the compiler is getting the object as a pointer
    rather<br>
    than its content.  Any idea?<br>
    <br>
    Thanks,<br>
    Giuseppe<br>
    <br>
    - -- <br>
    ____________________________________<br>
    <br>
    Giuseppe Sollazzo<br>
    Senior Systems Analyst<br>
    Computing Services<br>
    Information Services<br>
    St. George's, University Of London<br>
    Cranmer Terrace<br>
    London SW17 0RE<br>
    <br>
    Email: <a class="moz-txt-link-abbreviated" href="mailto:gsollazz@sgul.ac.uk">gsollazz@sgul.ac.uk</a><br>
    Direct Dial: +44 20 8725 5160<br>
    Fax: +44 20 8725 3583<br>
    <br>
    -----BEGIN PGP SIGNATURE-----<br>
    Version: GnuPG v1.4.10 (GNU/Linux)<br>
    Comment: Using GnuPG with Mozilla - <a class="moz-txt-link-freetext" href="http://enigmail.mozdev.org/">http://enigmail.mozdev.org/</a><br>
    <br>
    iQEcBAEBAgAGBQJPKUItAAoJEAqigArPBfJXlsMH/juz/RJQ6jq+UZoVGfsEk7G2<br>
    tpVIX1aUX8CSUq1YXd0I5VyULEqFAJechFJUi997b/LHp4CjtCPKHpNBpeE/TQW0<br>
    GsELSs623ie6HcVXY9LLkr5ZQNiugbYbIIBH067vJvf+JNg0B/cvkVI82nPbOAGI<br>
    FxRk2Z1ZNr5wmzxbayngAnpjY4pV1ulGz/2Hiwla3LAmf1UbSfCQPFi5Ystqq+BZ<br>
    /429yaA8UlFz5v94YaxqEUZukf7Q8Vc33rnVICRdEgg0aPec/CtHLxJNyBu/3fm/<br>
    RTyppExdD8wKvoQDKs9Iax7J6B+2FTLQpHp7QCv1goS51hd/o1Cij6D3wqgDT1E=<br>
    =PwsE<br>
    -----END PGP SIGNATURE-----<br>
    <br>
  </body>
</html>