[Rt-devel] [PATCH] Don’t leave a stray colon when stripping Re: from a comment.
Anders Kaseorg
andersk at MIT.EDU
Wed May 19 18:12:20 EDT 2010
The default admin comment template previously converted
Subject: Re: [Comment] [rtname #17] ticket subject
into
Subject: [Comment] : [rtname #17] ticket subject
which looked weird and also broke Gmail threading. This is fixed by
removing the extra colon:
Subject: [Comment] [rtname #17] ticket subject
Signed-off-by: Anders Kaseorg <andersk at mit.edu>
---
etc/initialdata | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/etc/initialdata b/etc/initialdata
index 89db2cc..c29f627 100755
--- a/etc/initialdata
+++ b/etc/initialdata
@@ -270,7 +270,7 @@ you may reply to this message.
Name => 'Admin Comment', # loc
Description => 'Default admin comment template', # loc
Content =>
-'Subject: [Comment] {my $s=($Transaction->Subject||$Ticket->Subject); $s =~ s/\\[Comment\\]//g; $s =~ s/^Re//i; $s;}
+'Subject: [Comment] {my $s=($Transaction->Subject||$Ticket->Subject); $s =~ s/\\[Comment\\]\\s*//g; $s =~ s/^Re:\\s*//i; $s;}
RT-Attach-Message: yes
--
1.7.1
More information about the rt-devel
mailing list