FWIW, I found the command-line tools add_members and remove_members, which allowed me to write a simple shell script to manage subscribes and unsubscribes by drawing from files. So we'll have PHP forms for subbing and unsubbing, which will write to new_subs.txt and del_subs.txt. Then we just run this shell script once per hour, and get around the confirmations problem with cell phones (though I'm surprised -- aren't there any other mailman lists out there with people subbing their cell phones? you'd think there would be a better way...)
#!/bin/sh # Add new subscribers to mailing list from text file # Then remove subscribers from an unsub list # Define location of subscribers text file: subfile="/home/username/listname_newsubs.txt" # Define location of unsub file: unsubfile="/home/username/listname_delsubs.txt" # Add all addresses in the sub file /usr/local/cpanel/3rdparty/mailman/bin/add_members -w y -a y -r $subfile list_domain.com # Now blank the file for future additions echo "" > $subfile # Unsub all addresses in the unsub file /usr/local/cpanel/3rdparty/mailman/bin/remove_members -n -f $unsubfile list_domain.com # Now blank the file for future additions echo "" > $unsubfile Works great! Scot Hacker wrote: >I have a list owner who runs a list designed to be subscribed to from >text-messaging cell phones (list traffic consists only of a daily haiku >- very neat). People can use the web interface to sign up, but the >confirmations are a problem. The subscription confirmation arrives at >the phone, the user replies to it, and then... nada. Seems to go into a >bit bucket. I've confirmed that the ID cookie does make it across just fine. > >A little later, the list owner receives a copy of the message below. >At first I thought there was some discrepancy between the Return-Path: >and the From: headers, but when I send a regular email from the phone to >myself, they both come through fine, and match. I'm stumped. > >The list owner *really* wants to turn off confirmations altogether, but >I don't see any way to do this. Is there one? If confirmations >absolutely can't be disabled, any ideas on why cell phone subscriptions >fail, or what can be done about it? > >Thanks, >Scot > > >*From: [EMAIL PROTECTED] >*Date: *May 2, 2005 9:51:59 PM PDT >*To: [EMAIL PROTECTED] >*Subject: Uncaught bounce notification >* >The attached message was received as a bounce, but either the bounce >format was not recognized, or no member addresses could be extracted >from it. This mailing list has been configured to send all >unrecognized bounce messages to the list administrator(s). > >For more information see: >http://tinywords.com/mailman/admin/haiku_tinywords.com/bounce > >* >From: [EMAIL PROTECTED] >*Date: *May 2, 2005 9:51:54 PM PDT >*To: [EMAIL PROTECTED] >*Subject: confirm f9bc6456b89ec9c10360aaa140411e154f0ff60b >* > >Want to subscribe to tinywords? Please reply to this message > > > > > >------------------------------------------------------ >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/shacker%40birdhouse.org > >Security Policy: >http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp > > ------------------------------------------------------ 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&file=faq01.027.htp