When RT sends out emails, if there’s a human who caused the message, we like
the “(via RT)” in the From line. But if it’s an RT message, having the From
read “Dyna Bug Tracker (language queue) (via RT)” seemed silly.
There is only one variable that controls the pretty-printing of From lines,
$FriendlyFromLineFormat. But that variable is applied the same way to people’s
names as well as RT queue names.
So, to achieve output like this for humans’ names:From: “Asheesh Laroia via RT” email@example.com
Subject: [rt #35] Resolved: improve the “From:” lines
But output like this for internal names:
From: “Our Request Tracker (server issues)” firstname.lastname@example.org
Subject: [rt #62] AutoReply: Rollin’ on out
I applied these two patches:
- Create a new config $FriendlyRobotFromLineFormat in RT_Config.pm.
- Modified lib/RT/Action/Autoreply.pm so autoreplies from daemons use that
Simple stuff. Hope this helps others.
Anyone can become angry – that is easy; but to be angry with the right
person, to the right degree, at the right time, for the right purpose
and in the right way – that is not easy.