aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Sapiro <mark@msapiro.net>2022-01-10 19:08:45 -0800
committerMark Sapiro <mark@msapiro.net>2022-01-10 19:08:45 -0800
commit16c8af52bb280ae959137eed11bf4385d4340f31 (patch)
tree91a70371330bf09ff6ce6fe125bc3b9027f52dcf
parentd903c7d4f373a3de4652bfc514d09d5dae65647c (diff)
downloadmailman2-16c8af52bb280ae959137eed11bf4385d4340f31.tar.gz
mailman2-16c8af52bb280ae959137eed11bf4385d4340f31.tar.xz
mailman2-16c8af52bb280ae959137eed11bf4385d4340f31.zip
Fix test for valid header following From_ line.
-rw-r--r--NEWS7
-rw-r--r--bin/cleanarch2
2 files changed, 8 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 46aadddf..064df556 100644
--- a/NEWS
+++ b/NEWS
@@ -5,6 +5,13 @@ Copyright (C) 1998-2020 by the Free Software Foundation, Inc.
Here is a history of user visible changes to Mailman.
+2.1.40 (xx-xxx-xxxx)
+
+ Bug Fixes and other patches
+
+ - Test for a valid header following a Unix From_ line in bin/cleanarch
+ has been improved. (LP: #1957025)
+
2.1.39 (13-Dec-2021)
Bug Fixes and other patches
diff --git a/bin/cleanarch b/bin/cleanarch
index 9e4d2bde..01266b15 100644
--- a/bin/cleanarch
+++ b/bin/cleanarch
@@ -60,7 +60,7 @@ cre = re.compile(mailbox.UnixMailbox._fromlinepattern)
# From RFC 2822, a header field name must contain only characters from 33-126
# inclusive, excluding colon. I.e. from oct 41 to oct 176 less oct 072. Must
# use re.match() so that it's anchored at the beginning of the line.
-fre = re.compile(r'[\041-\071\073-\176]+')
+fre = re.compile(r'[\041-\071\073-\176]+:')