[rt-users] Default Bcc for a special queue
Lorens Kockum
rt-id-45 at lists.lorens.org
Wed May 23 12:18:11 EDT 2001
On Wed, May 23, 2001 at 03:25:34PM +0200, Andre Esser wrote:
> I´m using RT-1.0.7 for our abuse department. I want a Bcc of
> all replies I sent through rt for the abuse-queue.
> Is it possible to add this default Bcc address for the
> abuse-queue ??
I wanted the same (but for all queues, so no test is done on
queues). I don't suppose it's very clean, but this works:
--- backup/lib/rt/support/mail.pm Wed Nov 8 20:55:22 2000
+++ rt/lib/rt/support/mail.pm Tue May 22 14:23:03 2001
@@ -73,7 +98,12 @@
if (!$in_recipient && !$in_cc && !$in_bcc) {
return("template_mail:No Recipient Specified!");
}
-
+ if ($in_bcc) {
+ $in_bcc = $in_bcc.", $MYBCCEMAIL" ;
+ } else {
+ $in_bcc = "$MYBCCEMAIL" ;
+ }
+
# The message will be killed by the mailing server if there are no
# mail alias - and for the _rt_system there aren't really a
# mail_alias:
Of course, replace $MYBCCEMAIL with what you want, or define the
variable.
Warning, the line numbers will be seriously off wrt official
1.0.7.
I suppose RT2 has these kinds of things already . . . as usual
;-)
--
#include <std_disclaim.h> Lorens Kockum
More information about the rt-users
mailing list