[Mailman-Users] (no subject)

Nicolas C. cocomail at bigfoot.com
Tue Jul 22 15:37:56 CEST 2003


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
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


Nicolas C.

-----Message d'origine-----
De : John DeCarlo [mailto:jdecarlo at mitre.org]
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 ?


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
> version of mailman.


John DeCarlo, My Views Are My Own
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: list_members.DeCarlo.txt
Url: http://mail.python.org/pipermail/mailman-users/attachments/20030722/1463f428/attachment.txt 

More information about the Mailman-Users mailing list