[Mailman-Users] Setting up MHonArc as Archiver on linux

Todd Pfaff pfaff at edge.cis.mcmaster.ca
Thu Apr 6 00:34:07 CEST 2000


try something like this:

- create /tmp/test-archiver as

#!/bin/sh
PATH=/bin:/usr/bin
export PATH
touch /tmp/test-archiver.log
id >> /tmp/test-archiver.log
echo $1 >> /tmp/test-archiver.log
exit 0

- make this executable by everyone

chmod 755 /tmp/test-archiver

- set these in mm_cfg.py (exactly as shown, on separate lines, with the
three double quote marks)

PUBLIC_EXTERNAL_ARCHIVER = """
/tmp/test-archiver %(listname)s
"""

PRIVATE_EXTERNAL_ARCHIVER = """
/tmp/test-archiver %(listname)s
"""


On Wed, 5 Apr 2000, Steve Eichblatt wrote:

> Well, I tried this. Nothing. 
> 
> I also tried setting it to 
> 
> PUBLIC_EXTERNAL_ARCHIVER = '/bin/cat /etc/hosts >! /home/mailman/archives/private/testlist/archive.testlist'
> 
> This command, when called alone, works (ie copies /etc/hosts to
> archive.testlist). 
> 
> So where/when is PUBLIC_EXTERNAL_ARCHIVER supposed to be called?
> 
> Steve
> 
> On Wed, 5 Apr 2000, Christopher P. Lindsey wrote:
> 
> > > PUBLIC_EXTERNAL_ARCHIVER = 'cat - > /tmp/archive.%(listname)s ; cat - >
> > > /home/mailman/archives/private/%(listname)s/archive.%(listname)s'
> > > PRIVATE_EXTERNAL_ARCHIVER = 'cat - > /tmp/archive.%(listname)s ; cat - >
> > > /home/mailman/archives/private/%(listname)s/archive.%(listname)s'
> > > 
> > > and NOTHING has been written, even in /tmp !!
> > 
> > Do you need to supply a pathname to cat?  Incidentally, the above won't
> > work as you expect, but using tee would fix it:
> > 
> >    PUBLIC_EXTERNAL_ARCHIVER = '/usr/bin/tee /tmp/archive.%(listname)s > /home/mailman/archives/private/%(listname)s/archive.%(listname)s'
> > 
> > I'm not sure where 'tee' resides on your system, though.  I also haven't
> > tried this on the 2.0 release candidates; we're using 1.2 beta1 from
> > the older CVS tree.
> > 
> > Chris
> > 
> > ------------------------------------------------------
> > Mailman-Users maillist  -  Mailman-Users at python.org
> > http://www.python.org/mailman/listinfo/mailman-users
> > 
> 
> 
> 
> ------------------------------------------------------
> Mailman-Users maillist  -  Mailman-Users at python.org
> http://www.python.org/mailman/listinfo/mailman-users
> 

--
Todd Pfaff                         \  Email: pfaff at mcmaster.ca
Computing and Information Services  \ Voice: (905) 525-9140 x22920
ABB 132                              \  FAX: (905) 528-3773
McMaster University                   \
Hamilton, Ontario, Canada  L8S 4M1     \





More information about the Mailman-Users mailing list