From: "Michael Orlitzky" <mjo@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: net-mail/postfix-logwatch/, net-mail/postfix-logwatch/files/
Date: Tue, 5 Sep 2017 13:29:59 +0000 (UTC) [thread overview]
Message-ID: <1504618049.dc1f3a7260ac66a9eddeccd01e60cb1fe7b780fb.mjo@gentoo> (raw)
commit: dc1f3a7260ac66a9eddeccd01e60cb1fe7b780fb
Author: Michael Orlitzky <mjo <AT> gentoo <DOT> org>
AuthorDate: Tue Sep 5 13:27:09 2017 +0000
Commit: Michael Orlitzky <mjo <AT> gentoo <DOT> org>
CommitDate: Tue Sep 5 13:27:29 2017 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dc1f3a72
net-mail/postfix-logwatch: new revision with another new bugfix patch.
Package-Manager: Portage-2.3.6, Repoman-2.3.1
.../files/multi-digit-enhanced-status.patch | 38 ++++++++++++++++++++++
...1.ebuild => postfix-logwatch-1.40.03-r2.ebuild} | 1 +
2 files changed, 39 insertions(+)
diff --git a/net-mail/postfix-logwatch/files/multi-digit-enhanced-status.patch b/net-mail/postfix-logwatch/files/multi-digit-enhanced-status.patch
new file mode 100644
index 00000000000..f07ab22813c
--- /dev/null
+++ b/net-mail/postfix-logwatch/files/multi-digit-enhanced-status.patch
@@ -0,0 +1,38 @@
+From ced6e6fcbf1a025419e8ee9f940e5022ed440532 Mon Sep 17 00:00:00 2001
+From: Michael Orlitzky <michael@orlitzky.com>
+Date: Tue, 5 Sep 2017 09:19:44 -0400
+Subject: [PATCH 1/1] Allow multi-digit numbers in enhanced SMTP status codes.
+
+The re_DSN regular expression is intended to match a response like
+"550 1.2.3", where "1.2.3" is an enhanced status code. However, the
+regular expression was only expecting single-digit numbers between the
+dots; thus it was missing codes like "550 5.7.23". The expression has
+been updated to accept any number of digits between the dots.
+
+This fixes unmatched rejection lines that begin with,
+
+ 550 5.7.23 <user@example.com>: Recipient address rejected...
+
+Such lines appear with newer versions of the python SPF policy daemon.
+---
+ postfix-logwatch | 4 +++-
+ 1 file changed, 3 insertions(+), 1 deletion(-)
+
+diff --git a/postfix-logwatch b/postfix-logwatch
+index 92ed621..827dfe0 100644
+--- a/postfix-logwatch
++++ b/postfix-logwatch
+@@ -66,7 +66,9 @@ my $re_QID_s = qr/[A-Z\d]+/;
+ my $re_QID_l = qr/(?:NOQUEUE|[bcdfghjklmnpqrstvwxyzBCDFGHJKLMNPQRSTVWXYZ\d]+)/;
+ our $re_QID;
+
+-our $re_DSN = qr/(?:(?:\d{3})?(?: ?\d\.\d\.\d)?)/;
++# The enhanced status codes can contain two-digit (or more) numbers;
++# for example, "550 5.7.23".
++our $re_DSN = qr/(?:(?:\d{3})?(?: ?\d+\.\d+\.\d+)?)/;
+ our $re_DDD = qr/(?:(?:conn_use=\d+ )?delay=-?[\d.]+(?:, delays=[\d\/.]+)?(?:, dsn=[\d.]+)?)/;
+
+ #MODULE: ../Logreporters/Utils.pm
+--
+2.13.0
+
diff --git a/net-mail/postfix-logwatch/postfix-logwatch-1.40.03-r1.ebuild b/net-mail/postfix-logwatch/postfix-logwatch-1.40.03-r2.ebuild
similarity index 95%
rename from net-mail/postfix-logwatch/postfix-logwatch-1.40.03-r1.ebuild
rename to net-mail/postfix-logwatch/postfix-logwatch-1.40.03-r2.ebuild
index 17046988053..b798aeb3512 100644
--- a/net-mail/postfix-logwatch/postfix-logwatch-1.40.03-r1.ebuild
+++ b/net-mail/postfix-logwatch/postfix-logwatch-1.40.03-r2.ebuild
@@ -16,6 +16,7 @@ RDEPEND="dev-lang/perl"
PATCHES=(
"${FILESDIR}/unescaped-left-brace.patch"
"${FILESDIR}/redundant-argument-to-sprintf.patch"
+ "${FILESDIR}/multi-digit-enhanced-status.patch"
)
src_prepare() {
next reply other threads:[~2017-09-05 13:30 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-09-05 13:29 Michael Orlitzky [this message]
-- strict thread matches above, loose matches on Subject: below --
2018-12-28 15:23 [gentoo-commits] repo/gentoo:master commit in: net-mail/postfix-logwatch/, net-mail/postfix-logwatch/files/ Michael Orlitzky
2017-08-24 13:21 Michael Orlitzky
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1504618049.dc1f3a7260ac66a9eddeccd01e60cb1fe7b780fb.mjo@gentoo \
--to=mjo@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox