Hello,
here’s another fix we implemented, in order to change the friendly from line format. I’d be
interessted, if there is a better solution for that?
In RT_SiteConfig.pm we have:
Set($FriendlyFromLineFormat , ““My Company %s” <%s>”);
When sending a mail from queue “Incidents” this results in the from line:
’“My Company Incidents” ’
Instead of the queue name we would like to replace the first %s with the name of the person
answering the request, resulting in '“My Company John Doe” '.
Until now we are using another patch for that:
— lib/RT/Action/Autoreply.pm.orig 2011-05-02 21:47:49.000000000 +0200
+++ lib/RT/Action/Autoreply.pm 2011-05-04 17:08:48.000000000 +0200
@@ -97,7 +97,7 @@
my $friendly_name;
if (RT->Config->Get('UseFriendlyFromLine')) {
-
$friendly_name = $self->TicketObj->QueueObj->Description ||
-
}$friendly_name = $self->TransactionObj->CreatorObj->RealName || $self->TicketObj->QueueObj->Name;
Is there an easier way to achieve this without patching the code?
If not, could you introduce a new variable like $FriendlyFromLineName to enable user to pick which
variable to use out of a few selected ones?
Best regards,
Lars