[Mailman-Users] Setting the FONT globally for the mailman GUI?

Ivan Van Laningham ivanlan at pauahtun.org
Tue Apr 24 22:04:12 CEST 2007


Hi All--

On 4/24/07, Brad Knowles <brad at shub-internet.org> wrote:
> At 3:19 PM +0200 4/24/07, Ralf Hildebrandt wrote:
>
> >  How do I globally set the font the mailman HTML pages use?
>
> Mailman does not (currently) have those kinds of facilities.  See FAQ 3.40.
>
>
> If you add anything along these lines to Mailman, we would love to
> see your modifications be contributed back to the community.
>
> You should also check the SourceForge patches page to see if anyone
> else has made this kind of a modification, and contributed their
> changes back to the Mailman project, although they may not have (yet)
> been accepted into the mainstream codebase.
>

There's no global option for this, but it's not particularly hard to
do, just a bit fiddly.  I've done it with my lists, with only a few
false starts.  The basic idea is to grep -i through all the config
files, templates and .py files looking for '<head'.  Then edit the
file and plug in a style sheet, something like this:

  <style type="text/css">
  <!--
    td {font-family: Helvetica}
    th {font-family: Helvetica}
     p {font-family: Helvetica}
    h1 {font-family: Helvetica}
    h2 {font-family: Helvetica}
    h3 {font-family: Helvetica}
    caption {font-family: Helvetica}
    li {font-family: Helvetica}
    ul {font-family: Helvetica}
    ol {font-family: Helvetica}
    dl {font-family: Helvetica}
    div {font-family: Helvetica}
    address {font-family: Helvetica}
    body {background-attachment: fixed;font-family:Helvetica;}
  -->
  </style>

Once you make all the changes, restart Mailman for the changes to take effect.

It'd be nice to have an easier way, yes.  We'd have to have a special
web page devoted to Mailman settings, not list settings.  Threel ways
to organize such a meta-page would be: 1) on a per-machine basis; 2)
on a per-list basis; and 3) on a per-virtual-host basis.

Metta,
Ivan
-- 
Ivan Van Laningham
God N Locomotive Works
http://www.pauahtun.org/
http://www.python.org/workshops/1998-11/proceedings/papers/laningham/laningham.html
Army Signal Corps:  Cu Chi, Class of '70
Author:  Teach Yourself Python in 24 Hours


More information about the Mailman-Users mailing list