[Rt-commit] rt branch, 4.0/one-time-recipient-suggestion-headers, created. rt-4.0.9-15-g398e3e7

Thomas Sibley trs at bestpractical.com
Tue Jan 22 18:48:19 EST 2013


The branch, 4.0/one-time-recipient-suggestion-headers has been created
        at  398e3e73eee4f2430650bb9e217eeb6d50f893f1 (commit)

- Log -----------------------------------------------------------------
commit 398e3e73eee4f2430650bb9e217eeb6d50f893f1
Author: Thomas Sibley <trs at bestpractical.com>
Date:   Tue Jan 22 15:26:06 2013 -0800

    Let list of headers used for one-time recipient suggestions be adjusted
    
    Extensions or local customizations may want to add RT-Send-To or
    Reply-To, or remove Bcc, From, etc.

diff --git a/lib/RT/Attachment.pm b/lib/RT/Attachment.pm
index 35387eb..54217b3 100644
--- a/lib/RT/Attachment.pm
+++ b/lib/RT/Attachment.pm
@@ -499,12 +499,14 @@ L<Email::Address> objects.
 
 =cut
 
+our @ADDRESS_HEADERS = qw(From To Cc Bcc RT-Send-Cc RT-Send-Bcc);
+
 sub Addresses {
     my $self = shift;
 
     my %data = ();
     my $current_user_address = lc $self->CurrentUser->EmailAddress;
-    foreach my $hdr (qw(From To Cc Bcc RT-Send-Cc RT-Send-Bcc)) {
+    foreach my $hdr (@ADDRESS_HEADERS) {
         my @Addresses;
         my $line = $self->GetHeader($hdr);
         

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


More information about the Rt-commit mailing list