[rt-users] $EmailSubjectTagRegex on 3.4.1?

Pedro Santa pedro.santa at gmail.com
Mon Apr 30 10:38:35 EDT 2007


Hi all!

I've found this old email stating a solution from my problem:
http://lists.fsck.com/pipermail/rt-users/2004-October/026238.html

Applying this patch to EmailParser.pm and Email.pm older versions of
RT are capable of recognizing old names of rtname.

You have to apply a little code on the procedure ParseTicketId of both
files, restart Web Server, "et voilá!"

Here's the patch:
*** ./lib/RT/EmailParser.pm~    2004-06-15 02:08:15.000000000 +0200
--- ./lib/RT/EmailParser.pm     2004-08-23 18:58:47.000000000 +0200
***************
*** 332,337 ****
--- 332,342 ----
           $RT::Logger->debug("Found a ticket ID. It's $id");
           return ($id);
       }
+     elsif ($Subject =~ s/\[OldName \#(\d+)\]//i) {
+       my $id = $1;
+       $RT::Logger->debug("Found an old (OldName) ticket ID. It's $id");
+       return ($id);
+     }
       else {
           return (undef);
       }

I hope that this will help. Later this afternoon (GMT+0) I will
document this on the wiki.

The best regards.

Pedro Machado Santa



More information about the rt-users mailing list