Re: [Mailman-Users] changing the Welcome message on a per list basis... a shot in the dark
At 12:28 PM 04/11/2002 -0400, Jon Carnes wrote: Okay, here is the deal... - You can simply change the text in subscribeack.txt and you are done. This changes every welcome message from every list, or [snip] def specwelcome(listname): Return special welcome file for `listname' if it exists. # If a special subscibeack.txt file exists in the lists home directory # use that instead of the normal one specified in the templates dir welcfile = os.path.join(mm_cfg.LIST_DATA_DIR, listname, 'subscribeack.txt') if not os.path.exists(welcfile): welcfile = subscribeack.txt return welcfile === This function looks for a copy of the subscribeack.txt file in the lists home directory (~mailman/lists/listname/..). If it finds a copy then it uses that, instead of the common one in ~mailman/templates/... At least, that is what it's supposed to do! Have you gotten this snippet of code to work? I tried and it bombed, although I know very little about python so I may have done something wrong. I haven't changed the following line yet: To use it, you would add the function to Deliverer.py and then replace the existing line (in Deliverer.py): 'subscribeack.txt', with something like: specwelcome(name), Another solution would be to edit subscribeack.txt to include just text that should be sent to *every* list and add your own text to the list specific text prepended... box on the general options page. I'm considering doing this to prevent the to post to the list... text accompanying e-mail address from being included in the welcome message for announce only lists. The trick will be remembering to add the necessary text and list address to lists that do accept posts! -Eric Eric Sisler [EMAIL PROTECTED] Applications Specialist Westminster Public Library Westminster, CO USA Linux - Don't fear the Penguin. Want to know what we use Linux for? Visit http://gromit.westminster.lib.co.us/linux -- Mailman-Users mailing list [EMAIL PROTECTED] http://mail.python.org/mailman/listinfo/mailman-users Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Re: [Mailman-Users] changing the Welcome message on a per list basis... a shot in the dark
At 03:12 PM 04/11/2002 -0400, Jon Carnes wrote: Thanks for testing it! I'll give it a run tonight myself and tweak it. Thanks for the sample code. If I knew more about python I'd try and fix it myself. (Learning python is on my list of things to do, I just haven't gotten there yet.) It does tend to hose other mailman functionality, so if you don't want to test it on a production mailman box, let me know. I'm in the process of setting up my first list so mailman hasn't gone live yet and I'd be happy to test it. Shouldn't be too hard to make it work, though it might work better if I used a file in the ~mailman/templates/.. directory. It also doesn't need to be a function - I just thought I would get fancy. I was thinking ~/mailman/templates/subscribeack.[list-name].txt might be a good location. I hacked it together in email. Never tested it. It's not something I'm likely to use. I normally don't worry about the welcome message. For my purposes, if it is inappropriate, I don't send a welcome message out. Then don't spend a lot of time on it, unless you've nothing better to do. ;-) It'd be nice to have, but I can probably make my earlier suggestion re: short subscribeack.txt file and add the rest to the list specific text prepended... box on the general options page. AFAIK, you can't include html tags though, which could be a drawback. -Eric Eric Sisler [EMAIL PROTECTED] Applications Specialist Westminster Public Library Westminster, CO USA Linux - Don't fear the Penguin. Want to know what we use Linux for? Visit http://gromit.westminster.lib.co.us/linux -- Mailman-Users mailing list [EMAIL PROTECTED] http://mail.python.org/mailman/listinfo/mailman-users Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
[Mailman-Users] Setting up an announce only list
Greetings! I'm new to Mailman and I've read the various documentation, FAQ's and scanned the archives, but I don't see a definitive answer to setting up an announce only type list. I can't quite come up with the solution I want, and perhaps there isn't with this version. Ideally what I'd like is this: When members (or anyone) try to send to the list, they receive the message back in the autoresponse_postings_text variable but *NOT* the short message indicating that the post is being held pending administrative approval (as it won't ever get approved). In this case, the list administrator would only need select discard from the tend to pending administrative tasks page instead of having to word a reply for each posting. Unfortunately setting Send mail to poster when their posting is held for approval? to no also seems to disable the autorespond text. Setting the above to yes then sends *both* messages - the short one indicating the message is being held for approval and the autorespond text. The problem is the messages conflict - one says the message is being held for approval and the other says no posts to this list are allowed. Another possible solution would be to change the short message to indicate no posts are allowed, but I don't see any method of doing so from the web interface. Is there a way? I'd also like to change the Welcome to the list e-mail text, is there a way to do this - other than just adding additional text? If anyone has a better method for setting up an announce only list, I'm all eyes. Any suggestions are appreciated. Thanks! -Eric Eric Sisler [EMAIL PROTECTED] Applications Specialist Westminster Public Library Westminster, CO USA Linux - Don't fear the Penguin. Want to know what we use Linux for? Visit http://gromit.westminster.lib.co.us/linux -- Mailman-Users mailing list [EMAIL PROTECTED] http://mail.python.org/mailman/listinfo/mailman-users Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py