From 16c8af52bb280ae959137eed11bf4385d4340f31 Mon Sep 17 00:00:00 2001 From: Mark Sapiro Date: Mon, 10 Jan 2022 19:08:45 -0800 Subject: Fix test for valid header following From_ line. --- NEWS | 7 +++++++ bin/cleanarch | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) 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]+:') -- cgit v1.2.3