[Mailman-Users] configuration files

Thomas Krichel krichel at openlib.org
Wed Mar 24 17:15:52 CET 2004


  Hi,

  I work as a volunteer for NEP: New Economics Paper, see 
  http://nep.repec.org. We have a lot of lists. All have
  identical setup, bar the name, title, and owners. I need
  to automate the configuration. But that does not seem to
  work. It has not been working for months. I wrote to
  the Debian maintainer but I have no response.  I am in dispair.

  I run the version of mailman distributed with the testing
  verison of Debian

admnep at arcano:~$ /home/admnep/mailman/bin/version 
Using Mailman version: 2.1.4

  I can create a test list

sh-2.05b$ /var/lib/mailman/bin/newlist testlist krichel at openlib.org testpass
To finish creating your mailing list, you must edit your /etc/aliases (or
equivalent) file by adding the following lines, and possibly running the
`newaliases' program:

## testlist mailing list
testlist:              "|/var/lib/mailman/mail/mailman post testlist"
testlist-admin:        "|/var/lib/mailman/mail/mailman admin testlist"
testlist-bounces:      "|/var/lib/mailman/mail/mailman bounces testlist"
testlist-confirm:      "|/var/lib/mailman/mail/mailman confirm testlist"
testlist-join:         "|/var/lib/mailman/mail/mailman join testlist"
testlist-leave:        "|/var/lib/mailman/mail/mailman leave testlist"
testlist-owner:        "|/var/lib/mailman/mail/mailman owner testlist"
testlist-request:      "|/var/lib/mailman/mail/mailman request testlist"
testlist-subscribe:    "|/var/lib/mailman/mail/mailman subscribe testlist"
testlist-unsubscribe:  "|/var/lib/mailman/mail/mailman unsubscribe testlist"

Hit enter to notify testlist owner...

  I can then output its configuration

/var/lib/mailman/bin/config_list  -o /tmp/testlist.conf testlist

  I can use the same testlist file to configure my list

/var/lib/mailman/bin/config_list  -i /tmp/testlist.conf testlist

  No error reported, but the list is missconfiguered and can not
  be accessed on the web interface. Here is what's happening, say
  if I want to configure again

sh-2.05b$ /var/lib/mailman/bin/config_list  -i /tmp/testlist.conf testlist
sh-2.05b$ /var/lib/mailman/bin/config_list  -o /tmp/testlist.conf testlist
Traceback (most recent call last):
  File "/var/lib/mailman/bin/config_list", line 353, in ?
    main()
  File "/var/lib/mailman/bin/config_list", line 346, in main
    do_output(listname, outfile)
  File "/var/lib/mailman/bin/config_list", line 117, in do_output
    do_list_categories(mlist, k, None, outfp)
  File "/var/lib/mailman/bin/config_list", line 127, in do_list_categories
    info = mlist.GetConfigInfo(k, subcat)
  File "/var/lib/mailman/Mailman/MailList.py", line 428, in GetConfigInfo
    value = gui.GetConfigInfo(self, category, subcat)
  File "/var/lib/mailman/Mailman/Gui/General.py", line 53, in GetConfigInfo
    optvals = [mlist.new_member_options & bitfields[o] for o in OPTIONS]
TypeError: unsupported operand type(s) for &: 'list' and 'int'


  The same error on the web interface

Bug in Mailman version 2.1.4

We're sorry, we hit a bug!

If you would like to help us identify the problem, please email a copy of this page to the webmaster for this site with a description of what happened. Thanks! 
Traceback:


Traceback (most recent call last):
  File "/var/lib/mailman/scripts/driver", line 97, in run_main
    main()
  File "/usr/lib/mailman/Mailman/Cgi/admin.py", line 175, in main
    change_options(mlist, category, subcat, cgidata, doc)
  File "/usr/lib/mailman/Mailman/Cgi/admin.py", line 1296, in change_options
    gui.handleForm(mlist, category, subcat, cgidata, doc)
  File "/var/lib/mailman/Mailman/Gui/GUIBase.py", line 126, in handleForm
    for item in self.GetConfigInfo(mlist, category, subcat):
  File "/var/lib/mailman/Mailman/Gui/General.py", line 53, in GetConfigInfo
    optvals = [mlist.new_member_options & bitfields[o] for o in OPTIONS]
TypeError: unsupported operand type(s) for &: 'list' and 'int'



Python information:

Variable	Value	
sys.version	2.3.3 (#2, Feb 24 2004, 09:29:20) [GCC 3.3.3 (Debian)] 	
sys.executable	/usr/bin/python 	
sys.prefix	/usr 	
sys.exec_prefix	/usr 	
sys.path	/usr 	
sys.platform	linux2 	

Environment variables:

Variable	Value	
HTTP_REFERER 	http://lists.repec.org/mailman/admin/testlist 	
SERVER_SOFTWARE 	Apache/1.3.29 (Debian GNU/Linux) PHP/4.3.3 	
SCRIPT_NAME 	/mailman/admin 	
SERVER_SIGNATURE 	
Apache/1.3.29 Server at netec.wustl.edu Port 80
REQUEST_METHOD 	POST 	
PATH_INFO 	/testlist 	
SERVER_PROTOCOL 	HTTP/1.1 	
QUERY_STRING 		
HTTP_TE 	deflate, gzip, chunked, identity, trailers 	
CONTENT_LENGTH 	38 	
HTTP_ACCEPT_CHARSET 	iso-8859-1, utf-8, utf-16, *;q=0.1 	
HTTP_USER_AGENT 	Mozilla/4.0 (compatible; MSIE 6.0; X11; Linux i686) Opera 7.23 [en] 	
HTTP_CONNECTION 	Keep-Alive, TE 	
HTTP_COOKIE 	nep-car+admin= 	
SERVER_NAME 	netec.wustl.edu 	
REMOTE_ADDR 	24.90.109.249 	
PATH_TRANSLATED 	/home/adnetec/WWW/testlist 	
SERVER_PORT 	80 	
SERVER_ADDR 	128.252.177.193 	
DOCUMENT_ROOT 	/home/adnetec/WWW 	
PYTHONPATH 	/var/lib/mailman 	
SCRIPT_FILENAME 	/var/lib/mailman/cgi-bin/admin 	
SERVER_ADMIN 	adnetec at netec.wustl.edu 	
HTTP_HOST 	lists.repec.org 	
HTTP_COOKIE2 	$Version=1 	
REQUEST_URI 	/mailman/admin/testlist 	
HTTP_ACCEPT 	text/html, application/xml;q=0.9, application/xhtml+xml;q=0.9, image/png, image/jpeg, image/gif, image/x-xbitmap, */*;q=0.1 	
GATEWAY_INTERFACE 	CGI/1.1 	
REMOTE_PORT 	3753 	
CONTENT_TYPE 	application/x-www-form-urlencoded 	
HTTP_ACCEPT_ENCODING 	deflate, gzip, x-gzip, identity, *;q=0 	
UNIQUE_ID 	QGGzT4D8scEAAGbVUoE


  Help!!!


  Thomas Krichel                      mailto:krichel at openlib.org
                                 http://openlib.org/home/krichel
                             RePEc:per:1965-06-05:thomas_krichel

 




More information about the Mailman-Users mailing list