[Rt-commit] rt branch, 3.8-trunk, updated. rt-3.8.7-100-g33ca9a0

sartak at bestpractical.com sartak at bestpractical.com
Fri Jan 22 20:19:40 EST 2010


The branch, 3.8-trunk has been updated
       via  33ca9a038a2eeb6a7f9e4b5ce8355f3229e29931 (commit)
      from  7d4a3ea956d8803ee7e5356b73252291576158df (commit)

Summary of changes:
 etc/RT_Config.pm.in       |   16 ++++++++++++++++
 lib/RT/Interface/Email.pm |    2 +-
 2 files changed, 17 insertions(+), 1 deletions(-)

- Log -----------------------------------------------------------------
commit 33ca9a038a2eeb6a7f9e4b5ce8355f3229e29931
Author: Shawn M Moore <sartak at bestpractical.com>
Date:   Fri Jan 22 20:18:43 2010 -0500

    Add DefaultErrorMailPrecedence

diff --git a/etc/RT_Config.pm.in b/etc/RT_Config.pm.in
index 856bf9c..de050a5 100755
--- a/etc/RT_Config.pm.in
+++ b/etc/RT_Config.pm.in
@@ -438,6 +438,22 @@ Set($DefaultMailPrecedence, 'bulk');
 
 =back
 
+=item C<$DefaultErrorMailPrecedence>
+
+C<$DefaultErrorMailPrecedence> is used to control the default
+Precedence level of outgoing mail that indicates some kind of
+error condition. By default it is C<bulk>, but if you only send
+mail to your staff, you may wish to change it.
+
+Note that you can set the precedence of individual templates
+by including an explicit Precedence header.
+
+=cut
+
+Set($DefaultErrorMailPrecedence, 'bulk');
+
+=back
+
 =head1 Sendmail Configuration
 
 These options only take effect if C<$MailCommand> is 'sendmail' or
diff --git a/lib/RT/Interface/Email.pm b/lib/RT/Interface/Email.pm
index 9a5f59d..e6c8255 100755
--- a/lib/RT/Interface/Email.pm
+++ b/lib/RT/Interface/Email.pm
@@ -252,7 +252,7 @@ sub MailError {
         Bcc                    => $args{'Bcc'},
         To                     => $args{'To'},
         Subject                => $args{'Subject'},
-        'Precedence:'             => 'bulk',
+        'Precedence:'          => RT->Config->Get('DefaultErrorMailPrecedence'),
         'X-RT-Loop-Prevention:' => RT->Config->Get('rtname'),
     );
     SetInReplyTo( Message => $entity, InReplyTo => $args{'MIMEObj'} );

-----------------------------------------------------------------------


More information about the Rt-commit mailing list