Changing %rtname%

Hi all. My first post so be nice to the newbie :slight_smile:

I installed rt on my solaris 2.6 system a month or so ago. It works great, but I was wondering if there is a way to change the name that rt uses on correspondence in the subject line:

[mm.mtu.edu] #1352

I was wondering if there is a way to change the mm.mtu.edu (which ended up being the default somehow) to be something else without wiping out the database.

Thanks
Dave

David S. Glaser AKA Grizz |
M&M Systems Administrator | Somedays it just isn’t worth struggling out
U201 M&ME Building | of the straight jacket in the morning.
Houghton, MI 49931 | - unknown
dsglaser@mtu.edu |

Yes, edit rt/etc/config.pm

Be warned, however, that changing this value will cause RT to stop recognising
the Taglines in the subjects of old messages.On Tue, May 09, 2000 at 11:14:56AM -0400, Dave (Grizz) Glaser wrote:

Hi all. My first post so be nice to the newbie :slight_smile:

I installed rt on my solaris 2.6 system a month or so ago. It works great, but I was wondering if there is a way to change the name that rt uses on correspondence in the subject line:

[mm.mtu.edu] #1352

I was wondering if there is a way to change the mm.mtu.edu (which ended up being the default somehow) to be something else without wiping out the database.

Thanks
Dave

David S. Glaser AKA Grizz |
M&M Systems Administrator | Somedays it just isn’t worth struggling out
U201 M&ME Building | of the straight jacket in the morning.
Houghton, MI 49931 | - unknown
dsglaser@mtu.edu |


rt-users mailing list
rt-users@lists.fsck.com
http://lists.fsck.com/mailman/listinfo/rt-users

jesse reed vincent – jrvincent@wesleyan.edu – jesse@fsck.com
pgp keyprint: 50 41 9C 03 D0 BC BC C8 2C B9 77 26 6F E1 EB 91
And I’m told we do share some common rituals. Our “flame war” is apparently
held in person in their land and called “project meeting”.
-Alan Cox [on “Suits”]

[mm.mtu.edu] #1352

I was wondering if there is a way to change the mm.mtu.edu (which ended
up being the default somehow) to be something else without wiping out
the database.

I think so, but I haven’t tested.

In lib/rt/ui/mail/manipulate.pm, there should be some lines like this:

elsif (($line =~ /^Subject:(.*)\[$rt::rtname\s*\#(\d+)\]\s*(.*)/i) and (!$subject)){

…try changing $rt::rtname to (?:mm.mtu.edu|$rt::rtname)

Tobias Brox
aka TobiX
+47 22 925 871

[mm.mtu.edu] #1352

I was wondering if there is a way to change the mm.mtu.edu (which ended
up being the default somehow) to be something else without wiping out
the database.

I think so, but I haven’t tested.

In lib/rt/ui/mail/manipulate.pm, there should be some lines like this:

elsif (($line =~ /^Subject:(.*)\[$rt::rtname\s*\#(\d+)\]\s*(.*)/i) and
(!$subject)){

…try changing $rt::rtname to (?:mm.mtu.edu|$rt::rtname)

–
Tobias Brox
aka TobiX
+47 22 925 871

Per your previous similar advice, I did the equivilant of the above and
we’ve been operating fine for a few months.

Jeffrey H. Johnson - jeff@websitefactory.net - System Administration - TrN
Barnet Worldwide Enterprises - The Website Factory - www.websitefactory.net