diff options
| author | Barry Warsaw | 2016-11-22 15:52:34 -0500 |
|---|---|---|
| committer | Barry Warsaw | 2016-11-22 15:52:34 -0500 |
| commit | 40b586facc07f71be4fd65a1b06af93681ba0441 (patch) | |
| tree | 0629d0ecc4cdca1a08c802d35634fbfe467d3913 /src | |
| parent | 2ca7f91cf4a95cfb91152d0cb8fa342e1883b534 (diff) | |
| download | mailman-40b586facc07f71be4fd65a1b06af93681ba0441.tar.gz mailman-40b586facc07f71be4fd65a1b06af93681ba0441.tar.zst mailman-40b586facc07f71be4fd65a1b06af93681ba0441.zip | |
Diffstat (limited to 'src')
| -rw-r--r-- | src/mailman/handlers/subject_prefix.py | 2 | ||||
| -rw-r--r-- | src/mailman/testing/mta.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/mailman/handlers/subject_prefix.py b/src/mailman/handlers/subject_prefix.py index ff728d92e..20f47fc5d 100644 --- a/src/mailman/handlers/subject_prefix.py +++ b/src/mailman/handlers/subject_prefix.py @@ -162,7 +162,7 @@ class SubjectPrefix: if p.search(prefix, 1): # The prefix has number, so we should search prefix w/number in # subject. Also, force new style. - prefix_pattern = p.sub(r'\s*\d+\s*', prefix_pattern) + prefix_pattern = p.sub(r'\\s*\\d+\\s*', prefix_pattern) # Substitute %d in prefix with post_id with suppress(TypeError): prefix = prefix % mlist.post_id diff --git a/src/mailman/testing/mta.py b/src/mailman/testing/mta.py index c1327f428..fbbb890d8 100644 --- a/src/mailman/testing/mta.py +++ b/src/mailman/testing/mta.py @@ -183,7 +183,7 @@ class ConnectionCountingServer(QueueServer): log.info('[ConnectionCountingServer] accepted: %s', address) StatisticsChannel(self, connection, address) - def process_message(self, peer, mailfrom, rcpttos, data): + def process_message(self, peer, mailfrom, rcpttos, data, **kwargs): # Provide a guaranteed order to recpttos. QueueServer.process_message( self, peer, mailfrom, sorted(rcpttos), data) |
