[Mailman-Users] Extra info?

Mark Sapiro msapiro at value.net
Sun Apr 23 20:12:03 CEST 2006

Anders Norrbring wrote:
>What I want to do is add one more text input field to the web signup 
>form, and to have the content of that field show in both the e-mail sent 
>to the admin that notifies that a new user want to sign up, and I want 
>it to show in the web page where the admin accepts or denies new signups.
>Can someone please point to where I can find info on this?  I'm totally 
>new to modifying Python scripts, so reading and guessing in the source 
>files isn't really an option...

Well then you're probably out of luck, because the source files are the
only place where the information is found.

The basic thing to look at is the definition of the UserDesc class in
Mailman/UserDesc.py. You should add an additional attribute of this
class for your text. You don't really need to do this, but it is
better for several reasons if all UserDesc instances have at least a
default value for this text.

Then you have to modify the subscribe form in the listinfo.html
template (see
to add the input field and modify Mailman/Cgi/subscribe.py to accept
the new text and add it to the UserDesc instance it creates.

You have to modify AddMember() in Mailman/MailList.py to get the text
and pass it to HoldSubscription(), and modify HoldSubscription() in
Mailman/ListAdmin.py to accept the text and add it to the data for the
subscription request it puts in the request.pck file.

Finally, you need to modify Mailman/Cgi/admindb.py to retrieve and
display the text for the admin, plus all the other things I've
overlooked such as the admin notification email, ...

What I'm suggesting is that you aren't going to be able to do this
without becoming proficient at reading, understanding and modifying
Python code. This isn't really that difficult if you already
understand programming, and it's a lot easier than it would be for
some other languages, but it takes some effort and some time.

Mark Sapiro <msapiro at value.net>       The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan

More information about the Mailman-Users mailing list