[Mailman-Users] How to show name in the subscriber lis tmailman2.1.2 ?
sorry, subject missing. resent. ~~ Hi, thanks John, I have tested your code, but I face with a problem of python. I didn't know python, I search but I didn't find, here is what happen: at line 79 (from email.Utils import commaaddr) this generate an error: # list_members.DeCarlo test Traceback (most recent call last): File "list_members.DeCarlo", line 79, in ? from email.Utils import commaaddr ImportError: cannot import name commaaddr I check the documentation of python, but I connot find the function commaaddr. You use it 2 times: 232:s = commaaddr((name, addr )).encode(enc, 'replace') 264:s = commaaddr((name, addr )).encode(enc, 'replace') What does this command do, and it is possible to substitute it with another known one ? or is it possible to include it as a python module (there is no trace of such command on the WEB) I search in the whole distrib. of Mailman 2.0.11 (old version I used) and Mailman 2.1.2 (the current one), I didn't find any function commaaddr, what is your mailman version ? Note: I use python 2.2.1 under Solaris regards, Nicolas C. -Message d'origine- De : John DeCarlo [mailto:[EMAIL PROTECTED] Envoyé : lundi 21 juillet 2003 19:22 À : Mailman-Users Cc : CLOCHARD Nicolas Objet : Re: [Mailman-Users] How to show name in the subscriber list mailman 2.1.2 ? Nicolas, My Python programming skills are crude and self taught. However, I modified list_members to include more information by default, as well as adding a "-a" option to list the full name of the user. I have attached it here. I keep it a separate name so that it doesn't get overwritten when I upgrade. Maybe someone with more time and skill than I can use some of this to upgrade Mailman. Feel free to use it as you wish. CLOCHARD Nicolas wrote: > Hi, > > I search to kown if the display of user name in the subscriber list is > possible under mailman 2.1.2 > I parse all the option but I di not find it, nothing is on the FAQ and > nothing on the post of the mailing list. > > If this is not possible, may be it can be a feature request for the futur > version of mailman. -- John DeCarlo, My Views Are My Own #! /usr/bin/python # # Copyright (C) 1998,1999,2000,2001,2002 by the Free Software Foundation, Inc. # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. # # added --all or -a to get digest/nodigest and nomail(why) status as well as full name # John DeCarlo 2003-04-01 # """List all the members of a mailing list. Usage: %(PROGRAM)s [options] listname Where: --output file -o file Write output to specified file instead of standard out. --regular / -r Print just the regular (non-digest) members. --digest[=kind] / -d [kind] Print just the digest members. Optional argument can be "mime" or "plain" which prints just the digest members receiving that kind of digest. --nomail[=why] / -n [why] Print the members that have delivery disabled. Optional argument can be "byadmin", "byuser", "bybounce", or "unknown" which prints just the users who have delivery disabled for that reason. It can also be "enabled" which prints just those member for whom delivery is enabled. --fullnames / -f Include the full names in the output. --all / -a Include full names, email, digest/regular (mime/plain), nomail (why) --preserve -p Output member addresses case preserved the way they were added to the list. Otherwise, addresses are printed in all lowercase. --help -h Print this help message and exit. listname is the name of the mailing list to use. Note that if neither -r or -d is supplied, both regular members are printed first, followed by digest members, but no indication is given as to address status. """ import sys import paths from Mailman import mm_cfg from Mailman import MailList from Mailman import Errors from Mailman import MemberAdaptor from Mailman
[Mailman-Users] (no subject)
Hi, thanks John, I have tested your code, but I face with a problem of python. I didn't know python, I search but I didn't find, here is what happen: at line 79 (from email.Utils import commaaddr) this generate an error: # list_members.DeCarlo test Traceback (most recent call last): File "list_members.DeCarlo", line 79, in ? from email.Utils import commaaddr ImportError: cannot import name commaaddr I check the documentation of python, but I connot find the function commaaddr. You use it 2 times: 232:s = commaaddr((name, addr )).encode(enc, 'replace') 264:s = commaaddr((name, addr )).encode(enc, 'replace') What does this command do, and it is possible to substitute it with another known one ? or is it possible to include it as a python module (there is no trace of such command on the WEB) I search in the whole distrib. of Mailman 2.0.11 (old version I used) and Mailman 2.1.2 (the current one), I didn't find any function commaaddr, what is your mailman version ? Note: I use python 2.2.1 under Solaris regards, Nicolas C. -Message d'origine- De : John DeCarlo [mailto:[EMAIL PROTECTED] Envoyé : lundi 21 juillet 2003 19:22 À : Mailman-Users Cc : CLOCHARD Nicolas Objet : Re: [Mailman-Users] How to show name in the subscriber list mailman 2.1.2 ? Nicolas, My Python programming skills are crude and self taught. However, I modified list_members to include more information by default, as well as adding a "-a" option to list the full name of the user. I have attached it here. I keep it a separate name so that it doesn't get overwritten when I upgrade. Maybe someone with more time and skill than I can use some of this to upgrade Mailman. Feel free to use it as you wish. CLOCHARD Nicolas wrote: > Hi, > > I search to kown if the display of user name in the subscriber list is > possible under mailman 2.1.2 > I parse all the option but I di not find it, nothing is on the FAQ and > nothing on the post of the mailing list. > > If this is not possible, may be it can be a feature request for the futur > version of mailman. -- John DeCarlo, My Views Are My Own #! /usr/bin/python # # Copyright (C) 1998,1999,2000,2001,2002 by the Free Software Foundation, Inc. # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. # # added --all or -a to get digest/nodigest and nomail(why) status as well as full name # John DeCarlo 2003-04-01 # """List all the members of a mailing list. Usage: %(PROGRAM)s [options] listname Where: --output file -o file Write output to specified file instead of standard out. --regular / -r Print just the regular (non-digest) members. --digest[=kind] / -d [kind] Print just the digest members. Optional argument can be "mime" or "plain" which prints just the digest members receiving that kind of digest. --nomail[=why] / -n [why] Print the members that have delivery disabled. Optional argument can be "byadmin", "byuser", "bybounce", or "unknown" which prints just the users who have delivery disabled for that reason. It can also be "enabled" which prints just those member for whom delivery is enabled. --fullnames / -f Include the full names in the output. --all / -a Include full names, email, digest/regular (mime/plain), nomail (why) --preserve -p Output member addresses case preserved the way they were added to the list. Otherwise, addresses are printed in all lowercase. --help -h Print this help message and exit. listname is the name of the mailing list to use. Note that if neither -r or -d is supplied, both regular members are printed first, followed by digest members, but no indication is given as to address status. """ import sys import paths from Mailman import mm_cfg from Mailman import MailList from Mailman import Errors from Mailman import MemberAdaptor from Mailman.i18n import _ from email.Utils import commaaddr PROGRAM = sys.argv[0] W
[Mailman-Users] missing port number :8000 in the list overview URL.
Hi, I have this in the mm_cfg.py: DEFAULT_URL_HOST= 'my.machine.domain.com:8000' DEFAULT_EMAIL_HOST = 'my.machine.domain.com' add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST) on the URL: http://my.machine.domain.com:8000/mailman/listinfo The link of 'the list admin overview page'in the sentence "List administrators, you can visit the list admin overview page to find the management interface for your list. " the link is pointing towards: http://my.machine.domain.com/mailman/admin why the :8000 is missing, I use mailman 2.1.2 ? regards, -- 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 Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/ This message was sent to: [EMAIL PROTECTED] Unsubscribe or change your options at http://mail.python.org/mailman/options/mailman-users/archive%40jab.org
FW: TR : [Mailman-Users] missing port number :8000 in the listoverviewURL.
Hi, I find it working using: ## GOOD ONE # # Put YOUR site-specific settings below this line. DEFAULT_URL_HOST= 'my.machine.domain.com' DEFAULT_EMAIL_HOST = 'my.machine.domain.com' DEFAULT_URL_PATTERN = 'http://%s:8000/mailman/' add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST) my error was to use the following configuration: ## BAD ONE ## # Put YOUR site-specific settings below this line. DEFAULT_URL_HOST= 'my.machine.domain.com:8000' DEFAULT_EMAIL_HOST = 'my.machine.domain.com' DEFAULT_URL_PATTERN = 'http://%s:8000/mailman/' add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST) The result was that all old mailing lisst was working, but when a new one was created, I have the port :8000 in doouble on certain URL (administration interface, ...): my.machine.domain.com:8000:8000 I post this if someone fall in the same problem. That's more simple that below, since I did use MAILMAN_URL field. To my config, I have 3 more fields too and the archive work well: PUBLIC_ARCHIVE_URL = "/MHonArc/%(listname)s" PUBLIC_EXTERNAL_ARCHIVER = "/MHonArc/bin/mhonarc -add -outdir /MHonArc/html/%(listname)s >> /tmp/out_external_archiver" PRIVATE_EXTERNAL_ARCHIVER = "/MHonArc/bin/mhonarc -add -outdir /MHonArc/html/%(listname)s >> /tmp/out_external_archiver" I don't know why there is not PRIVATE_ARCHIVE_URL in the config ... that's missing to make external archiver private list. It is always pointing towards the mailman HTML mailing list and not the external archiver. The use of "add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST)", is confused to me, may be this is usefull with several domain, but I still didn't understand why this is needed. regards, -Message d'origine- De : Don Levey [mailto:[EMAIL PROTECTED] Envoyé : jeudi 24 juillet 2003 16:16 À : [EMAIL PROTECTED] Objet : RE: [Mailman-Users] missing port number :8000 in the list overviewURL. I just ran into a similar problem, using non-standard ports. What I was finding was that changing the formats/values affected *some* links but not others. Here's what I've got that now works (fix_url is your friend!): DEFAULT_EMAIL_HOST = 'domain.tld' DEFAULT_URL_HOST = 'www.domain.tld' DEFAULT_URL_PATTERN = 'http://%s:7080/mailman/' MAILMAN_URL = 'http://www.domain.tld:7080/' PUBLIC_ARCHIVE_URL = 'http://%(hostname)s:7080/pipermail/%(listname)s' VIRTUAL_HOSTS.clear() add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST) The FAQ works, and is helpful - but the archive URL hint is a little burried for the impatient or over-confident. -Don -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Richard Barrett Sent: Thursday, July 24, 2003 5:32 AM To: Nicolas C. Cc: [EMAIL PROTECTED] Subject: Re: [Mailman-Users] missing port number :8000 in the list overviewURL. see about half way down this FAQ page for how to deal with this issue: http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq04.029.htp On Thursday, July 24, 2003, at 09:11 AM, Nicolas C. wrote: > Hi, > > I have this in the mm_cfg.py: > DEFAULT_URL_HOST= 'my.machine.domain.com:8000' > DEFAULT_EMAIL_HOST = 'my.machine.domain.com' > add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST) > > on the URL: > http://my.machine.domain.com:8000/mailman/listinfo > > The link of 'the list admin overview page'in the sentence "List > administrators, you can visit the list admin overview page to find the > management interface for your list. " > > the link is pointing towards: > http://my.machine.domain.com/mailman/admin > > why the :8000 is missing, I use mailman 2.1.2 ? > > regards, -- 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 Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/ This message was sent to: [EMAIL PROTECTED] Unsubscribe or change your options at http://mail.python.org/mailman/options/mailman-users/don_mailman%40the-l evey s.us -- 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 Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/ This message was sent to: [EMAIL PROTECTED] Unsubscribe or change your options at http://mail.python.org/mailman/options/mailman-users/archive%40jab.org
[Mailman-Users] Memory problem with mailman 2.1.2 under solaris 5.6
Hi, my workstation SUN U10 begin to be very slow. The top return: load averages: 0.87, 0.76, 0.92 129 processes: 114 sleeping, 2 running, 12 zombie, 1 on cpu CPU states: % idle, % user, % kernel, % iowait, % swap Memory: 512M real, 58M free, 591M swap in use, 430M swap free PID USERNAME THR PRI NICE SIZE RES STATE TIMECPU COMMAND 16522 bssref 4 330 259M 218M sleep 8:24 5.36% python 27064 bssref 1 330 1272K 1024K cpu 0:00 0.55% top the process 16522 with the 200MB+ of memory is "qrunner --runner=Outgoin.." Is it normal ?, the other python process can be 100MB. I tried to stop then start maiman, but the memory return to this value. Mailman is in version 2.1.2, python in 2.2.1, and OS is Solaris 5.6 There is no huge list on the workstation. any idea ? regards, -- 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 Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/ This message was sent to: [EMAIL PROTECTED] Unsubscribe or change your options at http://mail.python.org/mailman/options/mailman-users/archive%40jab.org