[rt-users] Re: Changing From Address - "via RT" bit
Greg Elisara
greg at dreamlabs.co.nz
Wed Nov 20 14:19:16 EST 2002
Hi Tony,
I did a bit of digging - actually done a hell of a lot of digging to even
get this puppy going. But I done did it and we're now in action. I actually
did fix it 10 minutes after sending off the help email - did a grep -R -n
"via RT" *, opened up the file, made the mod, sent a test, all honkydory. 60
seconds - true.
Thanks for the help though. But don't be too hard on us newbies, RT is a bit
cryptic for some (including me) - it was midnight and I wanted to get home
and I'd been working on this all day. Poor me.
Thanks again. Greg.
on 21/11/02 4:09 AM, Tony Aiuto at tony at ics.com wrote:
>
>> Sorry if this is been done to death before. Currently replies to tickets
>> done in RT have a from address set to:
>> "Greg via RT" <queue at rtserver.com>
>> How do I change the "via RT" to be something like "- My Company" ...
>
> Edit lib/RT/Action/SendEmail.pm
>
> Around line 296 there is a block which looks like
>
> # TODO: this "via RT" should really be site-configurable.
> $self->SetHeader('From', "\"$friendly_name via RT\" <$replyto>");
>
> chande the SetHeader command as appropriate e.g.
>
> $self->SetHeader('From', "\"$friendly_name via ICS support\" <$replyto>");
>
> But really, it's an admission of defeat to ask this sort of thing
> without even trying to figure it out. Here's what I did when I
> wanted to change it.
>
> % cd <TOP_OF_RT_INSTALL>
> % find . -type f | xargs grep via.RT
> ./lib/RT/Action/SendEmail.pm: # TODO: this "via RT" should really be
> site-configurable.
> ./lib/RT/Action/SendEmail.pm: $self->SetHeader('From', "\"$friendly_name
> via RT\" <$replyto>");
>
> Hmmm, it's obviously text in SendEmail.pm. Total elapsed time to
> fix - 60 seconds. I couldn't have looked it up in a manual faster
> than that.
>
> -tony
More information about the rt-users
mailing list