
Hi,
I have a multipart (html and text) email and I wish to add an unsubscribe footer to it. However mailman appends the footer as a new section that is plain text. Is there a way of making the footer section text/html. If not, any other way to include the unsubscribe link in the html part of the email?
thanks
yiannis

On 06/30/2015 02:28 AM, Yiannis Pericleous wrote:
I have a multipart (html and text) email and I wish to add an unsubscribe footer to it. However mailman appends the footer as a new section that is plain text. Is there a way of making the footer section text/html. If not, any other way to include the unsubscribe link in the html part of the email?
Standard Mailman does not do either of those things. See the FAQ at <http://wiki.list.org/x/4030707> for info on footers. You could use a custom handler to add text to message bodies. See <http://wiki.list.org/x/4030615> for info on using custom handlers.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan

Ok, thanks for the tip.
It seems I need to provide a custom Decorate Handler, as I need personalization data in my footer.
What is the recommended way of doing it?, edit Decorate.py directly (I'd rather not), create a custom SMTPDirect.py that calls my CustomDecorate.py, something else? If I create a custom SMTPDirect, can I set the DELIVERY_MODULE per list or is it a global only option?
thanks
----- Original Message -----

On 07/02/2015 02:30 AM, Yiannis Pericleous wrote:
It seems I need to provide a custom Decorate Handler, as I need personalization data in my footer.
No. You have a couple of choices. You can investigate using either the "Patching Mailman to solve this problem" patches ot the "Using mimedefang to solve this problem" method referenced in the FAQ at <http://wiki.list.org/x/4030707>
Or you can develop your own custom handler which will add your unsubscribe footer directly to the text/plain and text/html body parts of the message.
What is the recommended way of doing it?, edit Decorate.py directly (I'd rather not), create a custom SMTPDirect.py that calls my CustomDecorate.py, something else? If I create a custom SMTPDirect, can I set the DELIVERY_MODULE per list or is it a global only option?
You don't do any of that.
You create Add_Footer.py (or whatever you want to call it), save it in the Mailman/Handlers/ directory and add 'Add_Footer' to the pipeline just before 'ToOutgoing' for the lists you want by following instructions in the FAQ at <http://wiki.list.org/x/4030615>.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan

On 06/30/2015 02:28 AM, Yiannis Pericleous wrote:
I have a multipart (html and text) email and I wish to add an unsubscribe footer to it. However mailman appends the footer as a new section that is plain text. Is there a way of making the footer section text/html. If not, any other way to include the unsubscribe link in the html part of the email?
Standard Mailman does not do either of those things. See the FAQ at <http://wiki.list.org/x/4030707> for info on footers. You could use a custom handler to add text to message bodies. See <http://wiki.list.org/x/4030615> for info on using custom handlers.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan

Ok, thanks for the tip.
It seems I need to provide a custom Decorate Handler, as I need personalization data in my footer.
What is the recommended way of doing it?, edit Decorate.py directly (I'd rather not), create a custom SMTPDirect.py that calls my CustomDecorate.py, something else? If I create a custom SMTPDirect, can I set the DELIVERY_MODULE per list or is it a global only option?
thanks
----- Original Message -----

On 07/02/2015 02:30 AM, Yiannis Pericleous wrote:
It seems I need to provide a custom Decorate Handler, as I need personalization data in my footer.
No. You have a couple of choices. You can investigate using either the "Patching Mailman to solve this problem" patches ot the "Using mimedefang to solve this problem" method referenced in the FAQ at <http://wiki.list.org/x/4030707>
Or you can develop your own custom handler which will add your unsubscribe footer directly to the text/plain and text/html body parts of the message.
What is the recommended way of doing it?, edit Decorate.py directly (I'd rather not), create a custom SMTPDirect.py that calls my CustomDecorate.py, something else? If I create a custom SMTPDirect, can I set the DELIVERY_MODULE per list or is it a global only option?
You don't do any of that.
You create Add_Footer.py (or whatever you want to call it), save it in the Mailman/Handlers/ directory and add 'Add_Footer' to the pipeline just before 'ToOutgoing' for the lists you want by following instructions in the FAQ at <http://wiki.list.org/x/4030615>.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
participants (2)
-
Mark Sapiro
-
Yiannis Pericleous