[Rt-commit] rt branch, 3.8-trunk, updated. rt-3.8.7-99-g7d4a3ea

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


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

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

- Log -----------------------------------------------------------------
commit 7d4a3ea956d8803ee7e5356b73252291576158df
Author: Shawn M Moore <sartak at bestpractical.com>
Date:   Fri Jan 22 20:09:17 2010 -0500

    Allow controlling the default precedence of outgoing mail

diff --git a/etc/RT_Config.pm.in b/etc/RT_Config.pm.in
index e904873..856bf9c 100755
--- a/etc/RT_Config.pm.in
+++ b/etc/RT_Config.pm.in
@@ -422,6 +422,22 @@ Set($OverrideOutgoingMailFrom, {
 
 =back
 
+=item C<$DefaultMailPrecedence>
+
+C<$DefaultMailPrecedence> is used to control the default
+Precedence level of outgoing mail where none is specified.
+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($DefaultMailPrecedence, 'bulk');
+
+=back
+
 =head1 Sendmail Configuration
 
 These options only take effect if C<$MailCommand> is 'sendmail' or
diff --git a/lib/RT/Action/SendEmail.pm b/lib/RT/Action/SendEmail.pm
index a09bd3e..5820a0c 100755
--- a/lib/RT/Action/SendEmail.pm
+++ b/lib/RT/Action/SendEmail.pm
@@ -607,7 +607,7 @@ sub SetRTSpecialHeaders {
         }
     }
 
-    $self->SetHeader( 'Precedence', "bulk" )
+    $self->SetHeader( 'Precedence', RT->Config->Get('DefaultMailPrecedence') )
         unless ( $self->TemplateObj->MIMEObj->head->get("Precedence") );
 
     $self->SetHeader( 'X-RT-Loop-Prevention', RT->Config->Get('rtname') );

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


More information about the Rt-commit mailing list