Send parameters to build a personalized unsubscribe link
![](https://secure.gravatar.com/avatar/0f938bece10db1e910b3783552188061.jpg?s=120&d=mm&r=g)
First of all, sorry for comparing phplist with Dad Mailman, but I refuse to switch to phplist and i need to know how you can do the same things in Mailman that i describe here. For start, I can send an email to a mailman list and it delivers the mail to the members itself, and phplist simply can't, although there's a plugin that says do this work but requires a last click by the user and i need a complete automatic system that generates cronjobs for saying mailman "send this email for me that i'm going to the Caribbean islands". For everything else, and asuming that I will not use the Mailman GUI, even i'll only do calls for subscribe and unsubscribe members with curl function from my codeigniter app:
How I can customize mailman for the unsubscribe link does not point to the mailman gui but a url of my app where they can automatically unsubscribe?
A phplist can be given custom attributes of each member subscribed, that they can be used within the body of emails for personalize them. This makes me rather badly needed to implement the previous step, because the automatic unsubscribe can not just like "http://url/unsubscribe/id_member, because any robot could eliminate the entire database simply doing for member = 1 to all_members => curl http://url/unsubscribe/member. So I need the url of the unsubscribe link is like http://url/unsubscribe?id = (md5 of the combination of various parameters of that particular subscriber).
I hope I explained well, and that someone has needed it at any moment of his life. I will not do spam, all my suscribers want and need to receive the information i send, but all the links "If you don't want to receive it anymore" i know, are like http://domain.com/unsubscribe?guid=cafca76ca876cf87cfa8fac68a75cfa875 (for example).
Thanks!!
![](https://secure.gravatar.com/avatar/56f108518d7ee2544412cc80978e3182.jpg?s=120&d=mm&r=g)
On 9/27/2011 7:00 AM, Pablo García Ojeda wrote:
How I can customize mailman for the unsubscribe link does not point to the mailman gui but a url of my app where they can automatically unsubscribe?
A phplist can be given custom attributes of each member subscribed, that they can be used within the body of emails for personalize them. This makes me rather badly needed to implement the previous step, because the automatic unsubscribe can not just like "http://url/unsubscribe/id_member, because any robot could eliminate the entire database simply doing for member = 1 to all_members => curl http://url/unsubscribe/member. So I need the url of the unsubscribe link is like http://url/unsubscribe?id = (md5 of the combination of various parameters of that particular subscriber).
If you would be satisfied with a footer with a personalized unsubscribe link on only individual messages and not on digests (because Mailman doesn't personalize digests), you can do all except the hash with standard Mailman. See the FAQs at <http://wiki.list.org/x/UYA9> and <http://wiki.list.org/x/84A9> for more information and caveats.
In order to add the hash, you would need to hack the Mailman/Handlers/Decorate.py module to calculate the hash and add an additional replacement for it to the "extra personalization dictionary".
-- 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
-
Pablo García Ojeda