[rt-devel] Re: [rt-users] FROM: information in mail sent by RT autoresponders
Phil Homewood
pdh at snapgear.com
Sun Mar 24 18:15:44 EST 2002
Mike Tindor wrote:
> I guess my question is why it is only showing up as 'hosting' when in the
> description for the queue I actdually have Mike's Hosting Service
> HelpDesk. Where would I go to actually change it so that it shows
> something more descriptive in the FROM (like a person's full name, or a
> Departmental description" rather than just the first part of the email
> address?
See attached patch. I like the idea.
-------------- next part --------------
Index: Autoreply.pm
===================================================================
RCS file: /cvs/local/rt/lib/RT/Action/Autoreply.pm,v
retrieving revision 1.1.1.2
diff -u -r1.1.1.2 Autoreply.pm
--- Autoreply.pm 22 Jan 2002 23:47:44 -0000 1.1.1.2
+++ Autoreply.pm 24 Mar 2002 23:06:55 -0000
@@ -49,7 +49,8 @@
}
unless ($self->TemplateObj->MIMEObj->head->get('From')) {
- my $friendly_name=$self->TicketObj->QueueObj->Name;
+ my $friendly_name = $self->TicketObj->QueueObj->Description ||
+ $self->TicketObj->QueueObj->Name;
$self->SetHeader('From', "$friendly_name <$replyto>");
}
More information about the Rt-devel
mailing list