aboutsummaryrefslogtreecommitdiffstats
path: root/main/rt4/0001-email-allow-envelope-from-overriding-from-templates.patch
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2014-10-31 08:17:21 +0200
committerTimo Teräs <timo.teras@iki.fi>2014-10-31 08:18:20 +0200
commitf4d32eaea96ffd135248adf9910d8c487562fcda (patch)
tree07d69dce95609ce2c25976fba95699c51c07a357 /main/rt4/0001-email-allow-envelope-from-overriding-from-templates.patch
parenta949bd7e3e53db0876d7da65ffc9521888a86a33 (diff)
downloadaports-f4d32eaea96ffd135248adf9910d8c487562fcda.tar.bz2
aports-f4d32eaea96ffd135248adf9910d8c487562fcda.tar.xz
main/rt4: upgrade to 4.2.9
Diffstat (limited to 'main/rt4/0001-email-allow-envelope-from-overriding-from-templates.patch')
-rw-r--r--main/rt4/0001-email-allow-envelope-from-overriding-from-templates.patch22
1 files changed, 10 insertions, 12 deletions
diff --git a/main/rt4/0001-email-allow-envelope-from-overriding-from-templates.patch b/main/rt4/0001-email-allow-envelope-from-overriding-from-templates.patch
index 8e5df099c6..d82d58ab50 100644
--- a/main/rt4/0001-email-allow-envelope-from-overriding-from-templates.patch
+++ b/main/rt4/0001-email-allow-envelope-from-overriding-from-templates.patch
@@ -4,28 +4,26 @@ Subject: [PATCH] email: allow envelope from overriding from templates
Add X-RT-Envelope-From header that will override the envelope
from if using sendmailpipe mail sending.
-diff -ru rt-4.0.15.orig/lib/RT/Interface/Email.pm rt-4.0.15/lib/RT/Interface/Email.pm
---- rt-4.0.15.orig/lib/RT/Interface/Email.pm 2013-07-25 23:09:24.000000000 +0300
-+++ rt-4.0.15/lib/RT/Interface/Email.pm 2013-07-27 10:17:42.508546335 +0300
-@@ -376,7 +376,10 @@
-
- my $msgid = $args{'Entity'}->head->get('Message-ID') || '';
+diff -ru rt-4.2.9.orig/lib/RT/Interface/Email.pm rt-4.2.9/lib/RT/Interface/Email.pm
+--- rt-4.2.9.orig/lib/RT/Interface/Email.pm 2014-10-23 18:49:38.000000000 -0300
++++ rt-4.2.9/lib/RT/Interface/Email.pm 2014-10-31 08:14:48.557121324 -0200
+@@ -370,6 +370,9 @@
+ my $msgid = Encode::decode( "UTF-8", $args{'Entity'}->head->get('Message-ID') || '' );
chomp $msgid;
--
-+
+
+ my $envelope_from = $args{'Entity'}->head->get('X-RT-Envelope-From');
+ chomp $envelope_from;
+
# If we don't have any recipients to send to, don't send a message;
unless ( $args{'Entity'}->head->get('To')
|| $args{'Entity'}->head->get('Cc')
-@@ -442,7 +445,8 @@
+@@ -447,7 +450,8 @@
if ($QueueAddressOverride) {
$OutgoingMailAddress = $QueueAddressOverride;
} else {
-- $OutgoingMailAddress ||= $TicketObj->QueueObj->CorrespondAddress
+- $OutgoingMailAddress ||= $Queue->CorrespondAddress
+ $OutgoingMailAddress ||= $envelope_from
-+ || $TicketObj->QueueObj->CorrespondAddress
- || RT->Config->Get('CorrespondAddress');
++ || $Queue->CorrespondAddress
+ || RT->Config->Get('CorrespondAddress');
}
}