[Mailman-Users] SMS mailing list

Ben M. Swihart ben at spiritguardian.com
Thu Jun 3 16:34:11 CEST 2004


I tried "hacking" mailman a bit... Here's the relevant lines in
SMTPDirect.py :

    del msg['sender']
    del msg['errors-to']
    msg['Sender'] = envsender
    msg['Errors-To'] = envsender

At least, that's all I can find.  Nothing seems to happen when I comment
out some or all of these lines.  Am I doing something wrong?  Do I have
to restart mailman for these changes to work?

Thanks for you help, Jim.

- Ben




-----Original Message-----
From: Jim Tittsler [mailto:jwt at onjapan.net] 
Sent: Thursday, June 03, 2004 4:32 AM
To: mailman-users at python.org
Subject: Re: [Mailman-Users] SMS mailing list


On Jun 3, 2004, at 00:28, Ben M. Swihart wrote:

> How do I restrict this option to a particular list?  It seems global.

Setting ALLOW_OPEN_SUBSCRIBE allows you to set the subscribe_policy to 
'None'.  After you configure your list, you could set it back to No.  
(Or you could use bin/withlist to set your list's m.subscribe_policy=0 
directly.)

I should warn again that this setting seems like a bad idea in an era 
of malicious users.  If the list is as "closed" as you described, I 
would think it much better to set the subscription policy as tight as 
possible (to require 'approval', so that nobody joins the list 
"unexpectedly") and then always have the list manager do the 
subscription and unsubscription through the administrative interface.

> Also, the "Errors-to:" field is the field that is being grabbed and 
> stuffed into the body of the SMS message.  Is there a way to 
> change/disable that?

You could hack Mailman/Handlers/SMTPDirect.py, but it may be easier to 
have your MTA strip it.  (Think carefully before doing so, since some 
elderly MTAs might still honor that header.  If you are sure none are 
in the path between you and your SMS gateway, you should be safe.)


-- 
Jim Tittsler             http://www.OnJapan.net/      GPG: 0x01159DB6
Python Starship          http://Starship.Python.net/
Ringo MUG Tokyo          http://www.ringo.net/rss.html


------------------------------------------------------
Mailman-Users mailing list
Mailman-Users at 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/






More information about the Mailman-Users mailing list