Overriding the subscribeack.txt file for my read-only lists...
I want to have another set of .txt (template) files for a set of lists which are to be read-only (broadcast) lists. I don't want the subscription acknowledgment message mentioning anything about where or how to post to the list.
The default acknowledgment file is subscribeack.txt. This file is fine for most purposes but I need to override it for this set of read-only lists.
How do I do this?
I've snooped around in the Deliverer.py file and mm_cfg.py file. It seems the .txt files are not overridable, is this true?
Thank you in advance, Jose
-- .............................. UCLA Department of Statistics Jose L. Hales-Garcia ..............................
You could hack the code on this one fairly easily, creating a file with lists that get a different subscribeack.txt. - or you could simply have a second install of Mailman for these lists...
Jon Carnes ----- Original Message ----- From: "Jose L. Hales-Garcia" <jose@stat.ucla.edu> To: <mailman-users@python.org> Sent: Tuesday, October 30, 2001 1:45 PM Subject: [Mailman-Users] Overriding the subscribeack.txt file for my read-only lists...
I want to have another set of .txt (template) files for a set of lists which are to be read-only (broadcast) lists. I don't want the subscription acknowledgment message mentioning anything about where or how to post to the list.
The default acknowledgment file is subscribeack.txt. This file is fine for most purposes but I need to override it for this set of read-only lists.
How do I do this?
I've snooped around in the Deliverer.py file and mm_cfg.py file. It seems the .txt files are not overridable, is this true?
Thank you in advance, Jose
-- .............................. UCLA Department of Statistics Jose L. Hales-Garcia ..............................
Mailman-Users maillist - Mailman-Users@python.org http://mail.python.org/mailman/listinfo/mailman-users
At 2:20 PM -0500 10/30/01, Jon Carnes wrote:
You could hack the code on this one fairly easily, creating a file with lists that get a different subscribeack.txt. - or you could simply have a second install of Mailman for these lists...
I hacked the Deliverer.py file, putting the following in the Deliverer class declaration:
# get the text from the template
if os.path.exists('/Users/mailman/MailSystem/lists/' + string.lower(self
.real_name) + '/readonly'): template_file = 'subscribeack-readonly.txt' else: template_file = 'subscribeack.txt' text = Utils.maketext( template_file, {'real_name' : self.real_name, 'host_name' : self.host_name, 'welcome' : welcome, 'umbrella' : umbrella, 'emailaddr' : self.GetListEmail(), 'listinfo_url': self.GetScriptURL('listinfo', absolute=1), 'optionsurl' : self.GetOptionsURL(name, absolute=1), 'password' : password, })
The 'readonly' file is just an empty stub file. I'm not sure if this is what you had in mind but it works for me.
Thanks, Jose
.............................. UCLA Department of Statistics Jose L. Hales-Garcia ..............................
participants (2)
-
Jon Carnes -
Jose L. Hales-Garcia