Ben Swihart wrote:
>
>When users subscribe, I like sending them a "welcome" e-mail with 
>introductions, 
>instructions, etc.  However, if you send an e-mail to [EMAIL PROTECTED],
>we are getting this back:
>
>"The results of your email command are provided below. Attached is your
>original message.
>
>- Results:
>    Subscription request succeeded.
>
>- Done."
>
>Is there a way to disable command result notifications?


Attached is a patch against Mailman 2.1.6 to do this. The line numbers
will need adjusting for other releases.

-- 
Mark Sapiro <[EMAIL PROTECTED]>       The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan

--- mailman-2.1.6rc4/Mailman/Defaults.py.in     2005-05-12 19:34:39.000000000 
-0700
+++ mailman-mas/Mailman/Defaults.py.in  2005-05-28 11:22:31.609375000 -0700
@@ -802,6 +802,9 @@
 MEMBER_PASSWORD_LENGTH = 8
 ADMIN_PASSWORD_LENGTH = 10

+# Should Mailman send a response to a successful e-mail 'confirm' command?
+RESPOND_TO_SUCCESSFUL_CONFIRM = Yes
+

 
 #####
--- mailman-2.1.6rc4/Mailman/Commands/cmd_confirm.py    2003-11-30 
17:25:46.000000000 -0800
+++ mailman-mas/Mailman/Commands/cmd_confirm.py 2005-05-28 14:52:15.515625000 
-0700
@@ -73,7 +73,9 @@
     else:
         if ((results[0] == Pending.SUBSCRIPTION and mlist.send_welcome_msg)
             or
-            (results[0] == Pending.UNSUBSCRIPTION and mlist.send_goodbye_msg)):

+            (results[0] == Pending.UNSUBSCRIPTION and mlist.send_goodbye_msg)
+            or
+            (not mm_cfg.RESPOND_TO_SUCCESSFUL_CONFIRM)):
             # We don't also need to send a confirmation succeeded message
             res.respond = 0
         else:
------------------------------------------------------
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