qpsmtpd-plugins/qpsmtpd-address-in-bcc.patch

40 lines
1.5 KiB
Diff

diff -Nur qpsmtpd-plugins-openfusion-20050429/plugins/bcc qpsmtpd-plugins-openfusion-20050429_bz8990/plugins/bcc
--- qpsmtpd-plugins-openfusion-20050429/plugins/bcc 2005-03-29 07:02:39.000000000 +0200
+++ qpsmtpd-plugins-openfusion-20050429_bz8990/plugins/bcc 2015-08-06 15:15:36.302538784 +0200
@@ -75,7 +75,7 @@
=cut
-use Mail::Address;
+use Qpsmtpd::Address;
my $VERSION = 0.04;
@@ -189,7 +189,7 @@
unless ($transaction->notes("bcc_ignore_rcpt") || 0) < $transaction->recipients;
if ($self->{_bcc_all}) {
- my $rcpt = (Mail::Address->parse($self->{_bcc_all}))[0];
+ my $rcpt = (Qpsmtpd::Address->parse($self->{_bcc_all}))[0];
$transaction->add_recipient($rcpt);
$transaction->header->add('X-Copied-To', $self->{_bcc_all})
if $self->{_bcc_mode} eq 'cc';
@@ -197,7 +197,7 @@
}
if ($self->{_bcc_outgoing} && exists $ENV{RELAYCLIENT}) {
- my $rcpt = (Mail::Address->parse($self->{_bcc_outgoing}))[0];
+ my $rcpt = (Qpsmtpd::Address->parse($self->{_bcc_outgoing}))[0];
$transaction->add_recipient($rcpt);
$transaction->header->add('X-Copied-To', $self->{_bcc_outgoing})
if $self->{_bcc_mode} eq 'cc';
@@ -205,7 +205,7 @@
}
if ($transaction->notes('bcc_incoming')) {
- my $rcpt = (Mail::Address->parse($self->{_bcc_incoming}))[0];
+ my $rcpt = (Qpsmtpd::Address->parse($self->{_bcc_incoming}))[0];
$transaction->add_recipient($rcpt);
$transaction->header->add('X-Copied-To', $self->{_bcc_incoming})
if $self->{_bcc_mode} eq 'cc';