From 74522e4e3f93552dc1ed2e476bf9c3c4686cc79c Mon Sep 17 00:00:00 2001 From: bwarsaw Date: Thu, 17 Jan 2002 23:31:37 +0000 Subject: VERP_REGEXP: Include a named group corresponding to the `bounces' interpolation placeholder in the VERP_FORMAT, i.e. everything up to the first + in the default format. --- Mailman/Defaults.py.in | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Mailman/Defaults.py.in b/Mailman/Defaults.py.in index 956c070d9..9c5eebbd3 100644 --- a/Mailman/Defaults.py.in +++ b/Mailman/Defaults.py.in @@ -507,10 +507,10 @@ VERP_FORMAT = '%(bounces)s+%(mailbox)s=%(host)s' # The second describes a regular expression to unambiguously decode such an # address, which will be placed in the To: header of the bounce message by the # bouncing MTA. Getting this right is critical -- and tricky. Learn your -# Python regular expressions. It must define exactly two named groups, -# mailbox and host, with the same definition as above. It will be compiled -# case-insensitively. -VERP_REGEXP = r'^[^+]+?\+(?P[^=]+)=(?P[^@]+)@.*$' +# Python regular expressions. It must define exactly three named groups, +# bounces, mailbox and host, with the same definition as above. It will be +# compiled case-insensitively. +VERP_REGEXP = r'^(?P[^+]+?)\+(?P[^=]+)=(?P[^@]+)@.*$' # A perfect opportunity for doing VERP is the password reminders, which are # already addressed individually to each recipient. This flag, if true, -- cgit v1.2.3-70-g09d2