[Mailman-Developers] patches

David Champion dgc@uchicago.edu
Thu, 7 Sep 2000 23:22:00 -0500


--XMCwj5IQnwKtuyBG
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

I've been posting a big pile of patches on the Sourceforge repository.
I think they're mostly stable now.  They're largely cosmetic, so in
case anyone wants to look at the results, please check out

	http://listtest.uchicago.edu/

The "dgctest1" list's archives are public, and completely uninteresting.
I'm using the built-in pipermail for now.  I'll probably change that in
a few weeks to MHonArc.  But first, I'll post more patches to drive the
pipermail HTML into compliance with the rest of the pages, just to be
thorough about it.

All the customization on the site is done it mm_cfg.py or in the
templates files.  I've attached my mm_cfg.py so you can see the config
parameters I've altered.  With the default mm_cfg.py and templates, the
whole thing looks identical to the current default mailman installation.

In particular, one of my patches converts all the hard-coded HTML in
listinfo.py and admin.py into templates.  The "tone" of the document on
this server is governed in mm_cfg, but the textual content, the
"shortcuts" box, etc are in the template.  These are configuration
options I learned to want with our 1.0 installation.

OK, just wanted this to be out there so people can see what I'm hoping
for -- maybe it'll be helpful in deciding whether to incorporate the
patches.  Any thoughts?  I probably should not go into production with
this if there's strong sentiment against it.

-- 
 -D.	dgc@uchicago.edu	NSIT	University of Chicago

--XMCwj5IQnwKtuyBG
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="mm_cfg.py"

# -*- python -*-

# Copyright (C) 1998,1999,2000 by the Free Software Foundation, Inc.
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
# 
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
# 
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.

"""This module contains your site-specific settings.

From a brand new distribution it should be copied to mm_cfg.py.  If you
already have an mm_cfg.py, be careful to add in only the new settings you
want.  Mailman's installation procedure will never overwrite your mm_cfg.py
file.

The complete set of distributed defaults, with documentation, are in the file
Defaults.py.  In mm_cfg.py, override only those you want to change, after the

  from Defaults import *

line (see below).

Note that these are just default settings; many can be overridden via the
administrator and user interfaces on a per-list or per-user basis.

"""

###############################################
# Here's where we get the distributed defaults.

from Defaults import *

##################################################
# Put YOUR site-specific settings below this line.

# dgc - Everything below here is in disagreement with stock defaults

# Site-specific settings
DEFAULT_HOST_NAME   = 'listtest.uchicago.edu'
DEFAULT_URL         = 'https://listtest.uchicago.edu/mailman/'
MAILMAN_OWNER     = 'mailman-owner@%s' % DEFAULT_HOST_NAME

# Default NNTP server for news gateways
DEFAULT_NNTP_HOST = 'uchinews.uchicago.edu'

# Archive defaults
DEFAULT_ARCHIVE_PRIVATE    = 1		# 0=public, 1=private

# How many members to display at a time on the admin cgi to unsubscribe them
# or change their options?
DEFAULT_ADMIN_MEMBER_CHUNKSIZE = 40

# Should a list, by default be advertised?  What is the default maximum number
# of explicit recipients allowed?  What is the default maximum message size
# allowed?
DEFAULT_LIST_ADVERTISED = 0

# This variable controlls whether monthly password reminders are sent.
DEFAULT_SEND_REMINDERS = 0

# Default to MIME digests, if digests are used
DEFAULT_MIME_IS_DEFAULT_DIGEST = 1

# Added message-id:
DEFAULT_PLAIN_DIGEST_KEEP_HEADERS = ['message', 'date', 'from',
                                     'subject', 'to', 'cc',
                                     'reply-to', 'organization',
                                     'message-id']


# How long should subscriptions requests await confirmation before being
# dropped?
PENDING_REQUEST_LIFE = days(7)

# How long should messages which have delivery failures continue to be
# retried?  After this period of time, a message that has failed recipients
# will be dequeued and those recipients will never receive the message.
DELIVERY_RETRY_PERIOD = days(5)


#BACKGD_COLOR  = "#FFFFFF"	# Page background
#MAJOR_COLOR   = "#99CCFF"	# Major section headers
#MINOR_COLOR   = "#FFF0D0"	# Minor section headers
#UINFO_COLOR   = "#DDDDDD"	# User name and password changes
#ADMPW_COLOR   = "#99CCCC"	# List admin password changes
#FIELD_COLOR   = "#CCCCCC"	# List admin field descriptions
#OPTION_COLOR  = "#DCDCDC"	# User option field descriptions
#TEXT_COLOR    = "#000000"	# Primary text color
#ERROR_COLOR   = "#FF66CC"	# Error text color
#LINK_COLOR    = ""		# If nonnull, forces LINK= in Document()
#ALINK_COLOR   = ""		# If nonnull, forces ALINK= in Document()
#VLINK_COLOR   = ""		# If nonnull, forces VLINK= in Document()

MAJOR_COLOR   = "#FFFFFF"	# Major section headers
MINOR_COLOR   = "#EEEEE3"	# Minor section headers
LINK_COLOR    = "#0000FF"	# If nonnull, forces LINK= in Document()
ALINK_COLOR   = "#FF0000"	# If nonnull, forces ALINK= in Document()
VLINK_COLOR   = "#660000"	# If nonnull, forces VLINK= in Document()
HIGHLIGHT     = "#EEEEEE"

## Wrap all documents up in this container.
GLOBAL_HEADER = '''
    &nbsp;<br>
    <center>
      <table bgcolor="''' + BACKGD_COLOR + '''" width="80%" 
       cellpadding=1 cellspacing=0 border=0>
        <tr><td>
          <a href="http://nsit.uchicago.edu/">
            <img src="/mailman/icons/nsitlogo2.gif" border=0></a>
        </td></tr>
        <tr><td bgcolor="#660000">
          <table bgcolor="''' + BACKGD_COLOR + '''" width="100%" 
           cellspacing=0 cellpadding=0 border=0>
            <tr><td></td></tr>
        </table></td></tr>
        </td></tr>
        <tr><td>
          &nbsp;
'''

## Close the container.
## (Which container do you mean, the small container or the blue container?)
GLOBAL_FOOTER = '''
        </td></tr>
      </table>
      <a href="http://www.uchicago.edu/">University of Chicago</a>
    </center>
'''

## Don't show that ugly GNU picture.
IMAGE_LOGOS = ""

## Ignore virtual hosting, because we're transitionary.
VIRTUAL_HOST_OVERVIEW = 0

--XMCwj5IQnwKtuyBG--