On Jul 27, 2005, at 5:01 PM, Mark Sapiro wrote:

Sintz, James wrote:

I understand the purpose of the confirmation, I just want the ability to turn it off. It is okay if users get unsubscribed from my list because of a spooked request.


If you really want to do it, I think the attached patch will allow it.

Warning - this is untested, use at your own risk.


<e-mail_unsub_wo_confirm.patch.txt>
------------------------------------------------------

Greetings All,

Like the OP, I was searching for an "unsubscribe without confirmation" solution for a single list (out of a dozen or so), when I ran across Mark's patch from July of this year. I'm still low on mailman's learning curve and python isn't my strong point. So I have a quick question.

The environment is Mac OS X 10.4.3 client, Postfix 2.2.5, Mailman 2.1.6

If I interpreted the patch and cmd_unsubscribe.py correctly, this patch affects the entire Mailman installation, correct?

Since most of the other lists are used for press releases for our clients, I could live with this "feature". I have bounce processing set to 1.0 to disable subscriptions quickly for bad addresses.

In short, just a newbie, asking if there is water below before jumping off the cliff. <grin>

Jeff Stubbs

IT Support
Altman-Hall Advertising
235 West Seventh Street
Erie, PA 16501
PH - 814.454.0158
FX -  814.454.3266


--- Mailman-2.1.6/Mailman/Commands/cmd_unsubscribe.py  2002-11-20 21:37:50
+++ mailman-mas/Mailman/Commands/cmd_unsubscribe.py     2005-07-27 13:36:35
@@ -69,19 +69,8 @@
             res.results.append(_("""\
 Your unsubscription request has been forwarded to the list administrator for
 approval."""))
-    elif password is None:
-        # No password was given, so we need to do a mailback confirmation
-        # instead of unsubscribing them here.
-        cpaddr = mlist.getMemberCPAddress(address)
-        mlist.ConfirmUnsubscription(cpaddr)
-        # We don't also need to send a confirmation to this command
-        res.respond = 0
     else:
-        # No admin approval is necessary, so we can just delete them if the
-        # passwords match.
-        oldpw = mlist.getMemberPassword(address)
-        if oldpw <> password:
-            res.results.append(_('You gave the wrong password'))
-            return STOP
+        # No admin approval is necessary, so we can just delete them
+        # Don't worry about the password
         mlist.ApprovedDeleteMember(address, 'mailcmd')
         res.results.append(_('Unsubscription request succeeded.'))
------------------------------------------------------
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=show&amp;file=faq01.027.htp

Reply via email to