Difference between revisions of "AutoReplyWithoutQueueNameOrDescription"
Jump to navigation
Jump to search
m (2 revisions imported) |
(No difference)
|
Latest revision as of 16:03, 6 April 2016
When using the FriendlyFromLineFormat sometimes the Queue Description or Name will be used in the From line when an auto reply is sent out. In order to change this to the realname of the ticket creator, you have to apply the following patch. This is tested with 3.8.7:
--- lib/RT/Action/Autoreply.pm.org 2010-02-08 17:14:59.000000000 +0100 +++ lib/RT/Action/Autoreply.pm 2010-02-08 17:15:19.000000000 +0100 @@ -100,8 +100,8 @@ my $friendly_name; if (RT->Config->Get('UseFriendlyFromLine')) { - $friendly_name = $self->TicketObj->QueueObj->Description || - $self->TicketObj->QueueObj->Name; + $friendly_name = $self->TransactionObj->CreatorObj->RealName || + $self->TransactionObj->CreatorObj->Name; } $self->SUPER::SetReturnAddress( @_, friendly_name => $friendly_name ); }}}
Along with
Set($FriendlyFromLineFormat , "\"My Text %s\" <%s>");
this will give you a from line '"My Text Name" <email>' instead of '"My Text Queue Description" <email>' for example.