[rt-users] Patch to make daemons not say "(via RT)"

Asheesh Laroia asheesh at asheesh.org
Fri Jun 24 16:12:36 EDT 2005


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" <rt at domain.com>
Subject: [rt #35] Resolved: improve the "From:" lines

But output like this for internal names:

From: "Our Request Tracker (server issues)" <rt at domain.com>
Subject: [rt #62] AutoReply: Rollin' on out

I applied these two patches:

1. Create a new config $FriendlyRobotFromLineFormat in RT_Config.pm.

http://paulproteus.acm.jhu.edu/rt/create_robot_config.patch

2. Modified lib/RT/Action/Autoreply.pm so autoreplies from daemons use 
that config.

http://paulproteus.acm.jhu.edu/rt/use_robot_config_friendly_from.patch

Simple stuff.  Hope this helps others.

-- Asheesh.

-- 
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.
 		-- Aristotle



More information about the rt-users mailing list