[Rt-commit] r10836 - in rt/branches/3.7-RTIR-RELENG: etc html/Ticket/Elements

ruz at bestpractical.com ruz at bestpractical.com
Thu Feb 14 07:25:03 EST 2008


Author: ruz
Date: Thu Feb 14 07:25:00 2008
New Revision: 10836

Modified:
   rt/branches/3.7-RTIR-RELENG/   (props changed)
   rt/branches/3.7-RTIR-RELENG/etc/RT_Config.pm.in
   rt/branches/3.7-RTIR-RELENG/html/Ticket/Elements/ShowMessageHeaders
   rt/branches/3.7-RTIR-RELENG/html/Ticket/Elements/ShowTransactionAttachments

Log:
 r10830 at localhost:  cubic | 2008-02-12 04:02:50 +0300
 * add config option that allow users to see BCC header in the UI


Modified: rt/branches/3.7-RTIR-RELENG/etc/RT_Config.pm.in
==============================================================================
--- rt/branches/3.7-RTIR-RELENG/etc/RT_Config.pm.in	(original)
+++ rt/branches/3.7-RTIR-RELENG/etc/RT_Config.pm.in	Thu Feb 14 07:25:00 2008
@@ -235,7 +235,6 @@
 # @MailParams defines a list of options passed to $MailCommand if it
 # is not 'sendmailpipe', 'sendmail', or 'smtp'
 Set(@MailParams, ());
-# }}}
 
 # RT is designed such that any mail which already has a ticket-id associated
 # with it will get to the right place automatically.
@@ -293,11 +292,15 @@
 
 # By default, RT forwards a message using queue's address and adds RT's tag into
 # subject of the outgoing message, so recipients' replies go into RT as correspondents.
-# To change this behavior, set $ForwardFromUser to 0 and RT will use address of the
-# current user and leave subject without RT's tag.
+# To change this behavior, set $ForwardFromUser to true value and RT will use
+# address of the current user and leave subject without RT's tag.
 
 Set($ForwardFromUser, 0);
 
+# By default RT hides from the web UI information about blind copies user sent on
+# reply or comment, to change this set the following option to true value
+Set($ShowBccHeader, 0);
+
 # }}}
 
 # {{{ GnuPG

Modified: rt/branches/3.7-RTIR-RELENG/html/Ticket/Elements/ShowMessageHeaders
==============================================================================
--- rt/branches/3.7-RTIR-RELENG/html/Ticket/Elements/ShowMessageHeaders	(original)
+++ rt/branches/3.7-RTIR-RELENG/html/Ticket/Elements/ShowMessageHeaders	Thu Feb 14 07:25:00 2008
@@ -55,7 +55,7 @@
 </table>
 <%INIT>
 my @headers;
-foreach my $field( $Message->SplitHeaders ) {
+foreach my $field( RT->Config->Get('ShowBccHeader')? $Message->_SplitHeaders : $Message->SplitHeaders ) {
     my ($tag, $value) = split /:/, $field, 2;
     next unless $tag && $value;
     push @headers, { Tag => $tag, Value => $value };

Modified: rt/branches/3.7-RTIR-RELENG/html/Ticket/Elements/ShowTransactionAttachments
==============================================================================
--- rt/branches/3.7-RTIR-RELENG/html/Ticket/Elements/ShowTransactionAttachments	(original)
+++ rt/branches/3.7-RTIR-RELENG/html/Ticket/Elements/ShowTransactionAttachments	Thu Feb 14 07:25:00 2008
@@ -183,6 +183,7 @@
 # If the transaction has anything attached to it at all
 elsif (!$ShowHeaders)  {
     @DisplayHeaders = qw(To From RT-Send-Cc Cc Bcc Date Subject);
+    push @DisplayHeaders, 'RT-Send-Bcc' if RT->Config->Get('ShowBccHeader');
 }
 
 my $size_to_str = sub {


More information about the Rt-commit mailing list