[Mailman-Users] Newbie question - tweaking Mailman and .py files

Doug Brandon doug at corelis.com
Thu Dec 19 02:39:03 CET 2002

Like I said, I'm sure I was missing an obvious step.  :)  Thanks a lot Dan!

For the person that wanted to know how to get rid of the list address Cc in 
personalized mode, this worked for me.  Go into Handlers/CookHeaders.py and 
look for this section of code:

         if mlist.personalize == 2 and mlist.reply_goes_to_list <> 1:
             # Watch out for existing Cc headers, merge, and remove dups.  Note
             # that RFC 2822 says only zero or one Cc header is allowed.
             new = []
             d = {}
             for pair in getaddresses(msg.get_all('cc', [])):
             i18ndesc = uheader(mlist, mlist.description)
             add((str(i18ndesc), mlist.GetListEmail()))
             del msg['Cc']
             msg['Cc'] = COMMASPACE.join([formataddr(pair) for pair in new])

Just comment out the last line, and restart the daemon.

At 05:29 PM 12/18/2002 -0800, Dan Mick wrote:
 >> I
 >> figured this is all I would have to do, but no matter what I do, I can't
 >> seem to make Mailman see any of my changes.  Even something simple like
 >> commenting out the X-Mailman-Version tag insertion doesn't work.
 >> I'm probably missing a very obvious step, but I can't figure it out!
 >Mailman is all daemons now.  Stop and restart with mailmanctl.

More information about the Mailman-Users mailing list