Change $rtname gracefully?

Is it possible to change the site $rtname to something new and continue
to accept replies to old tickets? Even domain names aren’t always
correct forever…

Les Mikesell
les@futuresource.com

Les Mikesell wrote:

Is it possible to change the site $rtname to something new and continue
to accept replies to old tickets? Even domain names aren’t always
correct forever…

Just hack “ParseTicketId” in lib/RT/EmailParser.pm like this:

*** ./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);
     }
    

We used it when moving to RT3 from RT2; we previously used a special
name (abbrev. of organisational unit) and now are using our domain
name instead as $rtname.

Well, it worked for us (RT3 was installed with the new $rtname, we
only had to take care of still circulatiing tickets opened previou-
sly in RT2), your mileage may vary on a running installation.
kai

Kai ‘wusel’ Siering eMail @ home: wusel@uu.org
Traveller on the Information Highway doing full-time administration.
The views expressed here are not neccessarily those of any employer.

Asterisk @ Home: FWD #476654 / +1-747-668-6567 / +49-2222-948-000847