[Mailman-Developers] FW: A subscribe link

Clayton Brown clayton.brown at blueberry.co.za
Mon Jul 18 11:54:11 CEST 2011


Hello Developers at Mailman

Thank you for your advice below, this solves my problem but also creates a
new problem.

The mobility of %(user_delivered_to)s is the issue. Is there something like
an msg_body, where you can compile the html letter and insert
%(user_delivered_to)s. That would obv be perfect.

Right now I have the issue of the msg_footer being inserted as an
attachment, but I have found a solution for that on the internet.
MIMEDefang... you obv know what I am talking about.

Msg_header does not work in MS office, but that won't work either because it
will be at the top of the emailer. See attachment.

Please let me know what you think.

Thanks in advance


-----Original Message-----
From: Mark Sapiro [mailto:mark at msapiro.net] 
Sent: 15 July 2011 01:22 AM
To: Clayton Brown
Cc: mailman-developers at python.org
Subject: Re: [Mailman-Developers] A subscribe link

On 7/14/2011 1:18 AM, Clayton Brown wrote:
> 
> Example: There must be a link on the cleansing email that looks like this:
> <a href='www.test.com/subscribe.php?id=recipient at test.co.za'>Opt In</a>
> It will be then easy for me to subscribe the recipient into a subscribe
> database and just create a list afterwards.


If the installation has set

OWNERS_CAN_ENABLE_PERSONALIZATION = Yes

in mm_cfg.py so that the 'personalize' settings appear on the list admin
Non-digest options page and personalize is set to Yes, then either the
replacement %(user_address)s or %(user_delivered_to)s can be used in
either msg_header or msg_footer to receive either the user's lower-cased
email address or case-preserved email address respectively.

Those replacements work only in msg_header and msg_footer. They don't
work in the message body and they don't work in digests.

E.g. You could put

Opt-in <www.test.com/subscribe.php?id=%(user_delivered_to)s>

in msg_footer. This may or may not be rendered as an active link
depending on the users MUA. You can't put an HTML tag in msg_header or
msg_footer, because it will always be in a text/plain part of the message.

-- 
Mark Sapiro <mark at msapiro.net>        The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Opt-In-mailer.jpg
Type: image/jpeg
Size: 61930 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/mailman-developers/attachments/20110718/b5f2cb72/attachment-0001.jpg>


More information about the Mailman-Developers mailing list