Re: [Mailman-Users] Config_list doesn't copy the Public HTML Pages
At 2:30 PM +0900 2006-09-06, [EMAIL PROTECTED] wrote: 1. Is there some way to get config_list to do this? Not that I know of, at least not without making source-code level changes to the tool. This really ought to be fixed. I don't know if the templates are even stored in there (I thought they were on the file system somewhere) but there are a number of other things that would be nice to have a better interface than bin/with_list for, like recording/setting the list's pipeline. The templates are stored in the filesystem, in a variety of different places depending on whether you're talking about the standard as-shipped language dependent versions, the standard as-shipped language independent versions, the site-wide language independent versions, site-wide language dependent versions, list-specific language independent versions, or list-specific language dependent versions, and that's just the six different potential combinations that I can come up with off the top of my head -- I'm pretty sure that there are some others that I haven't thought of. How you would pick and choose which specific templates are to be considered as part of the configuration for a given list would be a complex subject. Do you copy the site-wide versions or not? If you do copy them, do you install them in the list-specific locations on the other end, or do you install them in the appropriate site-wide location? And what if there are conflicts? This starts to get real messy, real quick. But config_list knows only about a subset of configuration variables. Right. My understanding is that templates are not considered part of a list configuration, and config_list has always seemed to me to be kind of a quick-n-dirty tool, and never intended to be a be-all/do-all 100% perfect list duplication management system. -- Brad Knowles, [EMAIL PROTECTED] Those who would give up essential Liberty, to purchase a little temporary Safety, deserve neither Liberty nor Safety. -- Benjamin Franklin (1706-1790), reply of the Pennsylvania Assembly to the Governor, November 11, 1755 Founding Individual Sponsor of LOPSA. See http://www.lopsa.org/. -- 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=showamp;file=faq01.027.htp
Re: [Mailman-Users] Config_list doesn't copy the Public HTML Pages
Brad Knowles writes: At 2:30 PM +0900 2006-09-06, [EMAIL PROTECTED] wrote: The templates are stored in the filesystem, in a variety of different places depending on [all kinds o' things]. How you would pick and choose which specific templates are to be considered as part of the configuration for a given list would be a complex subject. Do you copy the site-wide versions or not? If you do copy them, do you install them in the list-specific locations on the other end, or do you install them in the appropriate site-wide location? And what if there are conflicts? This starts to get real messy, real quick. Yep. That's why I mentioned work on it and later. However, I have an itch. A few thoughts in case anybody would like to comment before I start scratching. 0. For most admins, Mailman is a small fraction of their job, and a problem is just knowing where stuff is. I don't even know which files the lists configs are in unless I think about it; I just use bin/with_list. A tool should be optionally able to tell you where to find stuff related to a list (sorta like pkg-config does), as well as operating on it. 1. There should be a distinction between factory defaults and site wide (a la Defaults and mm_cfg). If there's a site-wide config != factory default, the tool should notify the user, and offer to copy it (only to a different installation). The admin should be given the choice of a list-specific copy or a site-wide copy. 2. If there are conflicts, the admin gets a menu. I really don't think this need be that hard, there should be a short list of available sources, and a short list (usually only one, ie, for stuff stored in the config pickle) of targets. In most cases the admin will want the most specific, that's why he chose that list to clone. Right. My understanding is that templates are not considered part of a list configuration, and config_list has always seemed to me to be kind of a quick-n-dirty tool, and never intended to be a be-all/do-all 100% perfect list duplication management system. Sure. Maybe it's time (for me) to try to bump 50% to 80% or 90% though. Anyway, that's what I'm thinking. :-) Cheers! Steve -- 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=showamp;file=faq01.027.htp
[Mailman-Users] Postfix and mailman content filter issue
Hi all, I'm having troubles in making a content_filter for postfix for mail archiving. My filter works like this: - Postfix passes the mail in pipe - The mail is saved on a spool directory - The script parses all parameters (sender and recipient) - The mail is saved in a directory (e.g. /var/foo/user), and if it doesn't exist, it creates it - The mail is sent back to postfix via sendmail command I call the filter in master.cf with the following line: arch unix - n n - - pipe flags=Rq user=filter argv=/etc/postfix/filter/archivizione.pl -f ${sender} -- ${recipient} The problem is that this postfix also handles mailing lists specified in /etc/aliases with the aid of mailman e.g.: test: |/var/mailman/mail/mailman post test team: |/var/mailman/mail/mailman post team hello: |/var/mailman/mail/mailman post hello If an email is sent to a mailing list, the filter instead of archiving it in each user's maildir, archives in a directory that calls [EMAIL PROTECTED] Any suggestions to solve this? Thanks in advance pgp1ggExIj5qo.pgp Description: PGP signature -- 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=showamp;file=faq01.027.htp
[Mailman-Users] new list--sort of
OK, here is an interesting one. I recently moved all the lists and my perl admin interface (for other things, not mailman list admin) to a new server. Both independantly seem to be running fine, but they seem to refuse to interface. If I try and do a newlist from my program, I get the mail, but the list is not created. I find this behavior especially puzzling. My perl program can run /usr/local/mailman/bin/list_lists even though apache (who it runs as) can run it fine. I just gets no response. ./check_perms -f No problems found I've checked and double checked my permissions, both with the mailman's check_perms and by looking. It all looks right to me. Does anyone have any idea what might be going on here. or anything else I should try? btw, the perl program can successfully execute other shell commands. Anne -- 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=showamp;file=faq01.027.htp
[Mailman-Users] Running large announce list forums
Folks: Being a nuB to Mailman (but old hand with majordomo), I have noted that if a message is being processed out to one of the large customer announcement lists (10,000+) that it seems the separate discussion lists' deliveries slow down substanially -- from minutes to hours! One member report 18 hours from post to receipt. I've read most of the tuning methods, but have not seen anything that might be best for this, except I *think* I have noticed a speedup if I don't use personalized stuff, like on the footers. I know it switches from processing individual messages to batches. Just wonder if that really is the main culprit. The hours mentioned above occurred when using personalized footers. The announcement lists still slow down things. I use sendmail on FBSD-6.x and latest Mailman 2.8x Just wondered what others have done with this type issue. I have read most of the slow message archives. PS: I have found that if I move a copy of any needed global templates to ../lists/somelist/en and that modified version will be used, which is great for customizing. (^-^) Best regards, Jack L. Stone -- 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=showamp;file=faq01.027.htp
Re: [Mailman-Users] Config_list doesn't copy the Public HTML Pages
On 9/6/06, Brad Knowles [EMAIL PROTECTED] wrote: The templates are stored in the filesystem, in a variety of different places depending on whether you're talking about the standard as-shipped language dependent versions, the standard as-shipped language independent versions, the site-wide language independent versions, site-wide language dependent versions, list-specific language independent versions, or list-specific language dependent versions, and that's just the six different potential combinations that I can come up with off the top of my head -- I'm pretty sure that there are some others that I haven't thought of. I didn't even know there *were* list-specific versions of that; could you tell me where they end up if they're created? (I hadn't customized my fake installation at the list level, so the directories probably didn't exist in it, so I didn't find them, is my immediate guess. I'm currently doing my customizing at the top level. Not that it matters in a temporary installation used once to transform old archive mbox files into the html archive pages; but it's *inelegant* and I should fix it. How you would pick and choose which specific templates are to be considered as part of the configuration for a given list would be a complex subject. Do you copy the site-wide versions or not? If you do copy them, do you install them in the list-specific locations on the other end, or do you install them in the appropriate site-wide location? And what if there are conflicts? Yes, this is potentially a conflict. Although if you're copying a list within a site, the site-level stuff above it will remain the same. A scheme that copied the list-specific stuff across all langugages when a list was copied would probably be very usable. This starts to get real messy, real quick. But config_list knows only about a subset of configuration variables. Right. My understanding is that templates are not considered part of a list configuration, and config_list has always seemed to me to be kind of a quick-n-dirty tool, and never intended to be a be-all/do-all 100% perfect list duplication management system. I see stuff about expanding (and making less weirdly inconsistent!) the template scheme as future work items. We should check and see if that includes addressing the issue of copying a list in a more elegant way. -- David Dyer-Bennet, mailto:[EMAIL PROTECTED], http://www.dd-b.net/dd-b/ RKBA: http://www.dd-b.net/carry/ Pics: http://www.dd-b.net/dd-b/SnapshotAlbum/ Dragaera/Steven Brust: http://dragaera.info/ -- 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=showamp;file=faq01.027.htp
[Mailman-Users] Small list takes several days for emails to reach recipients
Mailman ver : 2.1.7 Install method : CPANEL create mailing list (hosting service) Server OS : Linux Kernel version 2.6.17.6hg MTA : sendmail With 10 members on a list that processes small text messages, it is taking many days for recipients to receive email. Started happening a couple of months ago for reason unknown. Sound familiar? Suggestions? I am technically savvy but am new to Mailman. Your help is appreciated and will go toward helping the management of the world's next greatest rock band with songs like La Poutine and Hip-Hoperation. Jason Cavener Sr. Consultant Online Learning Learning Technologies Team Sales and Service Training Rogers Communications Group ( 416) 935-2311 PIN: 2039911E Cell: (416) 725-8576 Email: [EMAIL PROTECTED] -- 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=showamp;file=faq01.027.htp
Re: [Mailman-Users] Config_list doesn't copy the Public HTML Pages
Thanks for the responses on copying customized HTML files. Dragon was right about the location of customized files: /usr/local/mailman/lists/listname/language/. Alas, I don't have the permissions to write to those dirs, so it's back to cut-and-paste on the web site. Some other comments are inserted below. ~ Ken On 9/6/06, Brad Knowles [EMAIL PROTECTED] wrote: The templates are stored in the filesystem, in a variety of different places depending on whether you're talking about the standard as-shipped language dependent versions, the standard as-shipped language independent versions, the site-wide language independent versions, site-wide language dependent versions, list-specific language independent versions, or list-specific language dependent versions, and that's just the six different potential combinations that I can come up with off the top of my head -- I'm pretty sure that there are some others that I haven't thought of. I didn't even know there *were* list-specific versions of that; could you tell me where they end up if they're created? Mine (for an English language list) are in /usr/local/mailman/lists/listname/en/docname, e.g. listinfo.html. I assume that if you have different languages you have to customize your HTML pages separately for each language. How you would pick and choose which specific templates are to be considered as part of the configuration for a given list would be a complex subject. If all of a list's customized HTML pages are under /usr/local/mailman/lists/listname/language/, they are part of that list's configuration, and should be copied to the corresponding dirs for the target list's. Do you copy the site-wide versions or not? I'm not sure where these live or how they get established. If there is such a thing as a site-wide configuration, I'd say cloning (copying) that configuration to another site would be a separate operation or utility from cloning (copying) a list's configuration. The latter, whether between sites or within a site, should take just that list's specific configuration (including customized HTML files), leaving the list to inherit the target site's factor-installed or site-wide configuration that have not been customized for this list. If you do copy them, do you install them in the list-specific locations on the other end, or do you install them in the appropriate site-wide location? In the site-wide location(s), whatever they may be. And what if there are conflicts? Since a particular HTML file appears in /usr/local/mailman/lists/listname/language/ only if it has been customized, I don't see how there could be any conflicts. If a page has note been customized, wouldn't that list just inherit the site's version of that page? ~ Ken -- 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=showamp;file=faq01.027.htp
Re: [Mailman-Users] Config_list doesn't copy the Public HTML Pages
Ken Winter did speak thusly: Thanks for the responses on copying customized HTML files. You are welcome and I am surprised that this has not been discussed before. This is something that really deserves a FAQ entry. If I have time later to do so, I may work one up. If not, and somebody else has the motivation, go for it. Dragon was right about the location of customized files: /usr/local/mailman/lists/listname/language/. Alas, I don't have the permissions to write to those dirs, so it's back to cut-and-paste on the web site. Well that is a problem. :-( Can you get one of the server admins to do it for you or to add you to the mailman group so you can? Some other comments are inserted below. Likewise. ~ Ken On 9/6/06, Brad Knowles [EMAIL PROTECTED] wrote: The templates are stored in the filesystem, in a variety of different places depending on whether you're talking about the standard as-shipped language dependent versions, the standard as-shipped language independent versions, the site-wide language independent versions, site-wide language dependent versions, list-specific language independent versions, or list-specific language dependent versions, and that's just the six different potential combinations that I can come up with off the top of my head -- I'm pretty sure that there are some others that I haven't thought of. I didn't even know there *were* list-specific versions of that; could you tell me where they end up if they're created? Mine (for an English language list) are in /usr/local/mailman/lists/listname/en/docname, e.g. listinfo.html. I assume that if you have different languages you have to customize your HTML pages separately for each language. That seems to be the case but I have not tested this out or dug into the code to confirm. How you would pick and choose which specific templates are to be considered as part of the configuration for a given list would be a complex subject. If all of a list's customized HTML pages are under /usr/local/mailman/lists/listname/language/, they are part of that list's configuration, and should be copied to the corresponding dirs for the target list's. That would seem to be the logical course of action. Since these customized versions are under each list directory, it should be a fairly simple matter to modify the code to copy them to the new list directory. Do you copy the site-wide versions or not? I'm not sure where these live or how they get established. If there is such a thing as a site-wide configuration, I'd say cloning (copying) that configuration to another site would be a separate operation or utility from cloning (copying) a list's configuration. The latter, whether between sites or within a site, should take just that list's specific configuration (including customized HTML files), leaving the list to inherit the target site's factor-installed or site-wide configuration that have not been customized for this list. The site-wide templates for each language are located on my system in the directory /usr/local/mailman/templates/language These would not have to be copied because they act as the default. In theory, these files are the factory default version unless you modify them. Since I have custom versions of these files in the default directory, my only factory default versions are those in the source distribution. The unfortunate thing here is that when I upgrade from one version to the next, I have to back up my versions, do the install which overwrites my files and then copy my files back. I suppose I ought to do a diff and create a patch file to make this easier in the long run. If you do copy them, do you install them in the list-specific locations on the other end, or do you install them in the appropriate site-wide location? In the site-wide location(s), whatever they may be. As stated above, this is /usr/local/mailman/templates/language And what if there are conflicts? Since a particular HTML file appears in /usr/local/mailman/lists/listname/language/ only if it has been customized, I don't see how there could be any conflicts. If a page has note been customized, wouldn't that list just inherit the site's version of that page? That appears to be the case. Dragon ~~~ Venimus, Saltavimus, Bibimus (et naribus canium capti sumus) ~~~ -- 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:
[Mailman-Users] Writing a Mailman Script
I have a python script that can process an ascii text file, but I want to run this script for one of my mailing lists, so that it processes the e-mail message (the script populates my database). Where can I find help with details about writing python scripts to be inserted in a mailing list pipeline. i.e. I know my code should have all the includes (mm_cfg, etc...) and def process(mlist, msg, msgdata) BUT i do not know what kind of objects mlist, msg and msgdata are, what their properties are and how to simply retreive the e-mail text in simple ascii format. Thank you for your help. -- 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=showamp;file=faq01.027.htp
[Mailman-Users] I will like to activate my account...
I will like to activate my account...thanks __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- 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=showamp;file=faq01.027.htp
[Mailman-Users] [EMAIL PROTECTED] bounces
I couldn't find this in the archives, sorry if this has been asked answered... Does anyone know if I can change the default behavior of the -admin address so that messages sent to [EMAIL PROTECTED] are actually sent to the administrators and NOT bounced? If not, is there another list address that can be used to reach only the subscribers designated as list administrators? Thanks in advance. -- 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=showamp;file=faq01.027.htp
Re: [Mailman-Users] Postfix and mailman content filter issue
At 12:24 PM +0200 2006-09-06, Suuuper wrote: If an email is sent to a mailing list, the filter instead of archiving it in each user's maildir, archives in a directory that calls [EMAIL PROTECTED] This sounds to me like a pure postfix issue, having to do with the way your filter is implemented and how that interacts with aliases. I don't think it matters what the alias is used for, which would be Mailman in this case. I believe you're more likely to get useful support on this question from the postfix-users mailing list, and from looking at their FAQ, their documentation, etc -- Brad Knowles, [EMAIL PROTECTED] Those who would give up essential Liberty, to purchase a little temporary Safety, deserve neither Liberty nor Safety. -- Benjamin Franklin (1706-1790), reply of the Pennsylvania Assembly to the Governor, November 11, 1755 Founding Individual Sponsor of LOPSA. See http://www.lopsa.org/. -- 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=showamp;file=faq01.027.htp
Re: [Mailman-Users] Running large announce list forums
At 6:45 AM -0700 2006-09-06, Jack Stone wrote: Being a nuB to Mailman (but old hand with majordomo), I have noted that if a message is being processed out to one of the large customer announcement lists (10,000+) that it seems the separate discussion lists' deliveries slow down substanially -- from minutes to hours! One member report 18 hours from post to receipt. That could be a result of a slowdown within the Mailman queue processing system, or it could be a slowdown within the queue processing system of sendmail, once the message it out of the hands of Mailman. To figure out which is which, you've got to look at the date/time stamps for given messages in the Mailman logs and compare those to the corresponding date/time stamps of the messages in the sendmail logs, as well as looking at the date/time stamps which are put inside the message itself in the Received: headers. If there's a huge delay between the date/time stamp placed on the message by sendmail when it first gets the message from Mailman, and when that message for that recipient is delivered (as recorded in the sendmail logs), then you know that the delay is within the sendmail queue processing system, and you can apply all the appropriate system tuning procedures that are specific to that MTA. Conversely, if there is a big gap between the logged date/time stamp for a given message in the Mailman logs and the delay is short between when sendmail records having received that message from Mailman and when sendmail then turns around and records that message as being delivered, then you know that the delay is internal to Mailman, and you might need to do certain other things to speed up the process. I've read most of the tuning methods, but have not seen anything that might be best for this, except I *think* I have noticed a speedup if I don't use personalized stuff, like on the footers. I know it switches from processing individual messages to batches. Just wonder if that really is the main culprit. That could just be because you're handling a much smaller number of individual messages, and doesn't really tell us if the root cause of the delay is internal to sendmail or if it's internal to Mailman. We need more information. Just wondered what others have done with this type issue. I have read most of the slow message archives. Without more information, it's difficult to tell. -- Brad Knowles, [EMAIL PROTECTED] Those who would give up essential Liberty, to purchase a little temporary Safety, deserve neither Liberty nor Safety. -- Benjamin Franklin (1706-1790), reply of the Pennsylvania Assembly to the Governor, November 11, 1755 Founding Individual Sponsor of LOPSA. See http://www.lopsa.org/. -- 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=showamp;file=faq01.027.htp
Re: [Mailman-Users] Config_list doesn't copy the Public HTML Pages
At 10:39 AM -0500 2006-09-06, David Dyer-Bennet wrote: I didn't even know there *were* list-specific versions of that; could you tell me where they end up if they're created? The list specific stuff would be under the /usr/local/mailman/lists directory. So, for example, it might be /usr/local/mailman/lists/example for templates that are not language-specific, and /usr/local/mailman/lists/example/en for templates that are specific to English, and /usr/local/mailman/lists/example/fr for templates that are specific to French, etc At least, I think that's the right path. I haven't confirmed this with the information in the documentation or the FAQ with regard to templates, and we don't have any list-specific templates that I know of on any of the lists I help to administer. -- Brad Knowles, [EMAIL PROTECTED] Those who would give up essential Liberty, to purchase a little temporary Safety, deserve neither Liberty nor Safety. -- Benjamin Franklin (1706-1790), reply of the Pennsylvania Assembly to the Governor, November 11, 1755 Founding Individual Sponsor of LOPSA. See http://www.lopsa.org/. -- 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=showamp;file=faq01.027.htp
Re: [Mailman-Users] Small list takes several days for emails to reach recipients
At 1:08 PM -0400 2006-09-06, Jason Cavener wrote: Mailman ver : 2.1.7 Install method : CPANEL create mailing list (hosting service) Server OS : Linux Kernel version 2.6.17.6hg MTA : sendmail See FAQs 1.32 and 6.11, respectively. With 10 members on a list that processes small text messages, it is taking many days for recipients to receive email. Started happening a couple of months ago for reason unknown. Sound familiar? Suggestions? I am technically savvy but am new to Mailman. There's virtually no technical information here. You'd have to provide a lot more details before we'd be likely to be able to provide any assistance. Right now, all we can say is that it does appear you have a problem. At the very least, I suggest you read all of the FAQ entries that mention the keywords performance and sendmail. -- Brad Knowles, [EMAIL PROTECTED] Those who would give up essential Liberty, to purchase a little temporary Safety, deserve neither Liberty nor Safety. -- Benjamin Franklin (1706-1790), reply of the Pennsylvania Assembly to the Governor, November 11, 1755 Founding Individual Sponsor of LOPSA. See http://www.lopsa.org/. -- 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=showamp;file=faq01.027.htp
Re: [Mailman-Users] Config_list doesn't copy the Public HTML Pages
At 11:21 AM -0700 2006-09-06, Dragon wrote: The site-wide templates for each language are located on my system in the directory /usr/local/mailman/templates/language That's the location for the as-shipped default templates, which will get over-written on the next re-install. These would not have to be copied because they act as the default. In theory, these files are the factory default version unless you modify them. Since I have custom versions of these files in the default directory, my only factory default versions are those in the source distribution. FAQ 4.48 says you should install these under /usr/local/mailman/templates/list.host_name/language (for domain-specific customized templates that are on a system supporting multiple domains), or /usr/local/mailman/templates/site/language (for customized templates that would be common to all domains served by a given system). The unfortunate thing here is that when I upgrade from one version to the next, I have to back up my versions, do the install which overwrites my files and then copy my files back. I suppose I ought to do a diff and create a patch file to make this easier in the long run. If you follow the layout recommended by FAQ 4.48, that should no longer be a problem. -- Brad Knowles, [EMAIL PROTECTED] Those who would give up essential Liberty, to purchase a little temporary Safety, deserve neither Liberty nor Safety. -- Benjamin Franklin (1706-1790), reply of the Pennsylvania Assembly to the Governor, November 11, 1755 Founding Individual Sponsor of LOPSA. See http://www.lopsa.org/. -- 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=showamp;file=faq01.027.htp
Re: [Mailman-Users] Writing a Mailman Script
At 3:31 PM -0700 2006-09-06, Nerses Ohanyan wrote: I have a python script that can process an ascii text file, but I want to run this script for one of my mailing lists, so that it processes the e-mail message (the script populates my database). Where can I find help with details about writing python scripts to be inserted in a mailing list pipeline. You're looking for a custom handler. Unfortunately, there don't appear to be any FAQs addressing this issue, but I do know that this subject has been discussed many times on the mailman-users and mailman-developers lists, so you should search the archives. When you find posts that provide the information you need, please feel free to create a suitable entry for the subject in the community-supported FAQ Wizard. -- Brad Knowles, [EMAIL PROTECTED] Those who would give up essential Liberty, to purchase a little temporary Safety, deserve neither Liberty nor Safety. -- Benjamin Franklin (1706-1790), reply of the Pennsylvania Assembly to the Governor, November 11, 1755 Founding Individual Sponsor of LOPSA. See http://www.lopsa.org/. -- 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=showamp;file=faq01.027.htp
Re: [Mailman-Users] Writing a Mailman Script
Brad Knowles writes: At 3:31 PM -0700 2006-09-06, Nerses Ohanyan wrote: I have a python script that can process an ascii text file, but I want to run this script for one of my mailing lists, so that it processes the e-mail message (the script populates my database). Where can I find help with details about writing python scripts to be inserted in a mailing list pipeline. You're looking for a custom handler. Unfortunately, there don't appear to be any FAQs addressing this issue, The basic thing you need to realize is that the email message is an email.Message message. See the documentation on that module in your Python docs, or point pydoc at /usr/lib/python/email. It's pretty good. Note that there is one method of the message object to recover the original text, or maybe you can simply put the message object into a string context, to process the whole thing. Or, if you're specifically looking at the body or headers, there are specific APIs for them, but these return cooked Unicode strings. Note that Mailman gets these messages raw. Meta-data like envelope information is stored in a separate object. If you want to know that stuff, you need to access that separately from the email.Message object. You will be running as the mailman user, I believe, so your database will need to be writable by mailman. One other hint is that Mailman assumes that most messages will go through the pipeline to the end. Thus there is liberal use of exceptions to handle practically everything else: filtering spam, moderation, etc. What this means is that if (1) your code doesn't infloop and (2) you don't change the message or meta-data objects in any way, you can wrap your whole handler in try: ...; except: pass and guarantee that it doesn't affect list delivery. I remember that it was easy to create a new log simply by copying existing logging code and giving it a new file name. That can be useful for debugging. (Sorry, the disk that code was on went away a week ago, but that should be enough to get you started.) Store your code in a file, say PopulateDB, in the Handlers directory of your Mailman installation. Then for the list in question, do something like $ bin/withlist my-list import mm_cfg new_pipeline = mm_cfg.GLOBAL_PIPELINE new_pipeline.insert(10,'PopulateDB') m.Lock() m.pipeline = new_pipeline m.Save() m.Unlock() ^D $ 'm' is the MailList object. Strictly speaking you don't need to Unlock() it, withlist will do that, but I prefer to be pedantic. 'PopulateDB' is a suggested name. I personally use a prefix to identify my local handlers, but there are no community conventions for this yet as far as I know. I suggest 11th position because that's after a bunch of things like spam detection that might throw out the message, but before Mailman starts munging (AFAIK, you should check). That may not be appropriate (eg, if your database is going to be used in spam detection, you probably want that Handler to be first!) SpamDetect is probably a good Handler to model your local Handler on; it also does textual analysis. A final hint: bin/config_list does not know about the pipeline attribute. You'll need bin/withlist to access it, even just to read it. HTH Steve P.S. I'll eventually get around to posting this to the FAQ, but I've already spent more time on email today than I should. Feel free to beat me to it! -- 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=showamp;file=faq01.027.htp