[rt-users] Move ticket ID to end of subject line
Norton, Ian
i.norton at lancaster.ac.uk
Mon Aug 14 05:15:18 EDT 2006
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.
More information about the rt-users
mailing list