[Mailman-Users] problem with subscription confirmation string
Mark Sapiro
mark at msapiro.net
Thu Jun 5 04:53:54 CEST 2008
Christopher Adams wrote:
>
>Yes, that is the exact string that is in the To: header of the reply.
>
>On Wed, Jun 4, 2008 at 9:01 AM, Mark Sapiro <mark at msapiro.net> wrote:
>
>> Christopher Adams" <adamsca at gmail.com>
>> Date: Wed, 4 Jun 2008 08:31:21 -0700
>> To: mailman-users at python.org
>>
>> >I have previously had problems with this and since moving to a new server,
>> >it doesn't seem to work quite right.
>> >
>> >I use Postfix. In my Postfix main.cf, I have a line:
>> >
>> >recipient_delimiter = +
>> >
>> >In mm_cfg.py, I have this line:
>> >
>> >VERP_CONFIRMATIONS = Yes
>> >
>> >
>> >If I send a message to test7-request and add the word 'subscribe', I get a
>> >message back like this:
>> >
>> >From: test7-bounces at listsmart.osl.state.or.us; on behalf of;
>> >
>> test7-confirm+38d558c77e170cac9b8412a0db13b13e0560cc93 at listsmart.osl.state.or.us<test7-confirm%2B38d558c77e170cac9b8412a0db13b13e0560cc93 at listsmart.osl.state.or.us>
>> <
>> test7-confirm%2B38d558c77e170cac9b8412a0db13b13e0560cc93 at listsmart.osl.state.or.us<test7-confirm%252B38d558c77e170cac9b8412a0db13b13e0560cc93 at listsmart.osl.state.or.us>
>> >
It is unclear to me what you are seeing in these messages. Your MUA is
manipulating and adding stuff, so it is not clear what you saw in my
reply. The To: header in your confirmation reply should be
To:
test7-confirm+38d558c77e170cac9b8412a0db13b13e0560cc93-at-listsmart.osl.state.or.us
except where I wrote -at-, there should be an actual at-sign.
As Stephen indicates in another reply, if it actually looks like
To:
test7-confirm+38d558c77e170cac9b8412a0db13b13e0560cc93-at-listsmart.osl.state.or.us<test7-confirm%2B38d558c77e170cac9b8412a0db13b13e0560cc93-at-listsmart.osl.state.or.us>
VERP_CONFIRM_REGEXP will not be able to parse the token becaus it will
see the '<' and look for a following '+' which it won't find because
it is represented as %2B.
You could try putting
VERP_CONFIRM_REGEXP =
r'^(.*<)?(?P<addr>[^+%]+?)(\+|%2B)(?P<cookie>[^@]+)@.*$'
(note that should be all on one line) in mm_cfg.py. This (tested only
on your one example) regexp will accept either a '+' or '%2B' as the
delimiter.
--
Mark Sapiro <mark at msapiro.net> The highway is for gamblers,
San Francisco Bay Area, California better use your sense - B. Dylan
More information about the Mailman-Users
mailing list