Hi Andrew,

> I've had a look through the archives but haven't been able to 
> spot a solution to this problem: I would like to reorder the 
> subject line  of the auto reply to move the ticket ID to the 
> end. For example, our subject lines look like this:
> 
> RE: [domain.com #185] Printer is stuffed in room X
> 
> I would like to change it thus:
> 
> RE: Printer is stuffed in room X [domain.com #185]
> 
> Is this possible?

Indeed it is.  Assuming you're using RT 3.4.x I have a very simple patch

to do just what you want:

<PATCH>
--- lib/RT/Action/SendEmail.pm   2006-03-02 12:24:18.000000000 +0000
+++ lib/RT/Action/SendEmail.pm   2005-10-11 01:01:50.000000000 +0100
@@ -721,7 +721,7 @@
     unless ( $sub =~ /\Q$tag\E/ ) {
         $sub =~ s/(\r\n|\n|\s)/ /gi;
         chomp $sub;
-        $self->TemplateObj->MIMEObj->head->replace( 'Subject', "$tag
$sub" );
+        $self->TemplateObj->MIMEObj->head->replace( 'Subject', "$sub
$tag" );
     }
 }
</PATCH>

Hope that helps.

Regards, Ian.
_______________________________________________
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
Buy a copy at http://rtbook.bestpractical.com

Reply via email to