<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <tt>I suspect my proposal is wrong<br>
      Try instead<br>
    </tt>
    <blockquote>Subject: { if ($Ticket->QueueObj->Name eq 'Work
      Queue')
      <br>
      { "Helpdesk Job Logged: " . $Ticket->Subject . " Output this";
      }
      <br>
      elsif ($Ticket->QueueObj->Name eq 'Task Queue')
      <br>
      { "Support Job Logged: " . $Ticket->Subject . " Output that"; }
      <br>
      else
      <br>
      { "Output other"; }
      <br>
      }
      <br>
    </blockquote>
    Gerard<br>
    <br>
    On 2012-02-01 14:30, Gerard FENELON wrote:
    <blockquote cite="mid:4F293E93.80602@eve-team.com" type="cite">Try
      something like
      <br>
      <br>
      Subject: { if ($Ticket->QueueObj->Name eq 'Work Queue')
      <br>
      { "Helpdesk Job Logged: {$Ticket->Subject} Output this"; }
      <br>
      elsif ($Ticket->QueueObj->Name eq 'Task Queue')
      <br>
      { "Support Job Logged: {$Ticket->Subject} Output that"; }
      <br>
      else
      <br>
      { "Output other"; }
      <br>
      }
      <br>
      <br>
      In other words, your perl script should return a string.
      <br>
      <br>
      Gerard
      <br>
      <br>
      On 2012-02-01 14:18, Giuseppe Sollazzo wrote:
      <br>
      <blockquote type="cite">On 01/02/12 13:08, Gerard FENELON wrote:
        <br>
        <blockquote type="cite">Hi Giuseppe
          <br>
          <br>
          what is your definition of "This doesn't seem to work" ? what
          is
          <br>
          the (bad) behaviour that you are seeing ? Does an email get
          sent or
          <br>
          not ? What is its subject line and content ? Anything in the
          logs
          <br>
          ?
          <br>
          <br>
          Gerard
          <br>
        </blockquote>
        Hi Gerard,
        <br>
        <br>
        I should have been clearer but I thought it was evident: the
        "Subject"
        <br>
        line is not valid Perl, so you can't compile a script built that
        way.
        <br>
        <br>
        The question is if there's a standard way to add that directive
        (a
        <br>
        non-Perl one) within the if-clause.
        <br>
        <br>
        Thanks,
        <br>
        Giuseppe
        <br>
        <br>
        <blockquote type="cite">On 2012-02-01 12:03, Giuseppe Sollazzo
          wrote:
          <br>
          <blockquote type="cite">Hi, I'm trying to set up a different
            subject for different queues
            <br>
            in the same template (autoreply). This doesn't seem to work:
            <br>
            <br>
            { if ($Ticket->QueueObj->Name eq 'Work Queue') {
            Subject:
            <br>
            Helpdesk Job Logged: {$Ticket->Subject} "Output this"; }
            elsif
            <br>
            ($Ticket->QueueObj->Name eq 'Task Queue') { Subject:
            Support Job
            <br>
            Logged: {$Ticket->Subject} "Output that"; } else {
            "Output
            <br>
            other"; } }
            <br>
            <br>
            Is there a way to get this work?
            <br>
            <br>
            Thanks, Giuseppe
            <br>
          </blockquote>
        </blockquote>
      </blockquote>
      --------
      <br>
      RT Training Sessions
      (<a class="moz-txt-link-freetext" href="http://bestpractical.com/services/training.html">http://bestpractical.com/services/training.html</a>)
      <br>
      * Boston  March 5 & 6, 2012
      <br>
      <br>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Gerard FENELON              Corporate Support
                            Emulation & Verification Engineering
                            2 bis, voie La Cardon
phone: +33 1 6453 2734      Parc Gutenberg
fax:   +33 1 6453 2740      91120 Palaiseau
<a class="moz-txt-link-freetext" href="http://www.eve-team.com">http://www.eve-team.com</a>     FRANCE
</pre>
  </body>
</html>