[Mailman-Users] Fix blank Archives pages

Joe Hodge jhodge at aaas.org
Fri May 2 18:09:29 CEST 2003


This is the script I wrote to fix my problem with blank index.html pages in my archives.  It is of the quick-n-dirty school, but seems to have done the job.

Watch out for strange line breaks; I use a 132-column terminal so some of my lines my wrap/break strangely.

###USE AT YOUR OWN RISK###
###MAKE BACKUPS FIRST!###

#!/bin/bash

MAILMANDIR=/usr/local/mailman
LISTS=`ls ${MAILMANDIR}/lists`

for LIST in ${LISTS}
do      {
        if [ -d ${MAILMANDIR}/archives/private/${LIST} ] && [ -d ${MAILMANDIR}/archives/private/${LIST}.mbox ]
        then    {
                cat ${MAILMANDIR}/archives/private/${LIST}/*.txt > ${MAILMANDIR}/archives/private/${LIST}.mbox/${LIST}.mbox
                if [ -f ${MAILMANDIR}/archives/private/${LIST}.mbox/${LIST}.mbox ]
                then    {
                        ${MAILMANDIR}/bin/arch ${LIST}
                        }
                fi
                }
        fi
        }
done






More information about the Mailman-Users mailing list