aboutsummaryrefslogtreecommitdiffstats
path: root/Mailman
diff options
context:
space:
mode:
authorMark Sapiro <mark@msapiro.net>2009-09-03 10:29:36 -0700
committerMark Sapiro <mark@msapiro.net>2009-09-03 10:29:36 -0700
commitab93e70f12da510902dffa7a393f5173c2073d6e (patch)
tree100157ef690f12ab3e7242da3fec84259e61de5a /Mailman
parent38c27d92119a926e29d87e795ad52bf69ff1e091 (diff)
downloadmailman2-ab93e70f12da510902dffa7a393f5173c2073d6e.tar.gz
mailman2-ab93e70f12da510902dffa7a393f5173c2073d6e.tar.xz
mailman2-ab93e70f12da510902dffa7a393f5173c2073d6e.zip
Changed VERP_CONFIRM_REGEXP in Defaults.py to work if the replying
MUA folds the To: header and in cases where the list name includes '+'.
Diffstat (limited to '')
-rw-r--r--Mailman/Defaults.py.in7
1 files changed, 5 insertions, 2 deletions
diff --git a/Mailman/Defaults.py.in b/Mailman/Defaults.py.in
index a10e2976..73bc8a47 100644
--- a/Mailman/Defaults.py.in
+++ b/Mailman/Defaults.py.in
@@ -663,8 +663,11 @@ VERP_CONFIRM_FORMAT = '%(addr)s+%(cookie)s'
# From: local_part@host
# into
# To: "local_part" <local_part@host>
-# when replying, so we skip everything up to '<' if any.
-VERP_CONFIRM_REGEXP = r'^(.*<)?(?P<addr>[^+]+?)\+(?P<cookie>[^@]+)@.*$'
+# or even
+# To: "local_part@host" <local_part@host>
+# and may even fold the header when replying, so we skip everything up to '<'
+# if any and include ($s) so dot will match the newline in a folded header.
+VERP_CONFIRM_REGEXP = r'(?s)^(.*<)?(?P<addr>.+)\+(?P<cookie>[^@+]+)@.*$'
# Set this to Yes to enable VERP-like (more user friendly) confirmations
VERP_CONFIRMATIONS = No