Change Email Subject Line?

Hey All,

I’d like to change the subject line in the emails that RT3 sends out. Right now it prepends the domain name of the rt server to the ticket number, so the ticket subject looks like this:

[support.ilovert.com #98] [Comment] Testing - Ignore me…

I’d like the subject line in the RT emails to look like this…

[support #98] [Comment] Testing - Ignore me…

Are there any problems with changing this?? And how do I go about making this change?!!

Thanks in advance!

–Stevo

For RT 2x

It is in the lib/RT/action/Sendmail.pm

sub SetSubjectToken {

my $tag = “[$RT::rtname #”.$self->TicketObj->id."]";

}

the $rtname is defined in the etc/config.pm

you can define a new variable in config say rtemailname and use it in the
sendmail.pm

I am not sure about any problems making these changes. I have not made this
change.

Niranjan-----Original Message-----
From: Stevo [mailto:checkpoint@ozbergs.com]
Sent: Tuesday, June 17, 2003 12:44 PM
To: rt-users@lists.fsck.com
Subject: [rt-users] Change Email Subject Line??

Hey All,

I’d like to change the subject line in the emails that RT3 sends out. Right
now it prepends the domain name of the rt server to the ticket number, so
the ticket subject looks like this:

[support.ilovert.com #98] [Comment] Testing - Ignore me…

I’d like the subject line in the RT emails to look like this…

[support #98] [Comment] Testing - Ignore me…

Are there any problems with changing this?? And how do I go about making
this change?!!

Thanks in advance!

–Stevo

Stevo,
As per yesterday’s digest…
http://lists.fsck.com/pipermail/rt-users/2003-June/014716.html

Be sure to also see Phil’s excellent warning about having a generic
$rtname
http://lists.fsck.com/pipermail/rt-users/2003-June/014717.html

Hey All,

I’d like to change the subject line in the emails that RT3 sends out. =
Right now it prepends the domain name of the rt server to the ticket =
number, so the ticket subject looks like this:

[support.ilovert.com #98] [Comment] Testing - Ignore me…=20

I’d like the subject line in the RT emails to look like this…

[support #98] [Comment] Testing - Ignore me…=20

Are there any problems with changing this?? And how do I go about =
making this change?!!

Thanks in advance!

–Stevo

/************************************************************

I’d like to change the subject line in the emails that RT3 sends out. =
Right now it prepends the domain name of the rt server to the ticket =
number, so the ticket subject looks like this:

[support.ilovert.com #98] [Comment] Testing - Ignore me…=20

I’d like the subject line in the RT emails to look like this…

[support #98] [Comment] Testing - Ignore me…=20

Are there any problems with changing this?? And how do I go about =
making this change?!!

If using 3.x, edit your RT_SiteConfig.pm and change $rtname from
"support.ilovert.com" to “support”.

The following is from RT_Config.pm:

$rtname the string that RT will look for in mail messages to

figure out what ticket a new piece of mail belongs to

Your domain name is recommended, so as not to pollute the namespace.

once you start using a given tag, you should probably never change it.

(otherwise, mail for existing tickets won’t get put in the right place

Set($rtname , “example.com”);

Spam Trap Mail Key: ASK and you shall receive