[Mailman-Users] control delivery processes

Stephen J. Turnbull stephen at xemacs.org
Tue Mar 4 12:36:39 CET 2014

DongInn Kim writes:

 > Can anyone please help me to debug the syntax error in mm_cfg.py?
 > ompi_list = [ 'test-crest', 'osl-test' ]
 > if listname in ompi_list:
 >     archive_url = ("http://www.open-mpi.org/community/lists/devel/%s/date.php" % (time.strftime("%Y/%m")))
 >     DEFAULT_MSG_FOOTER = """_______________________________________________
 > %(real_name)s mailing list
 > %(real_name)s@%(host_name)s
 > subscribe: %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s
 > searchable archives: %(archive_url)s
 > """  % { 'archive_url' : archive_url }
 > What I wanted here is to apply the new DEFAULT_MSG_FOOTER only for
 > the specific mailing lists.  Is there something wrong here? 

It would help if you report the whole error that you're seeing, or if
you're not able to find the error message, precisely what behavior
leads you to think something's wrong.

I'm guessing that the problem is that you have a large number of
format elements without corresponding values to interpolate in the
format string for DEFAULT_MSG_FOOTER.  Double all of the '%'
characters except that corresponding to archive_url and you'll
probably get the result you want.

More information about the Mailman-Users mailing list