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

Steve Eichblatt eichblatt at fnal.gov
Thu Apr 6 01:26:37 CEST 2000


Thanks, Todd for your explicit instructions.

That works. The file /tmp/test-archiver is created and written to with 

0% more /tmp/test-archiver.log

uid=8(mail) gid=500(mailman) groups=12(mail)
Testlist

0%
 
One surprise is that "Testlist" is capitalized, while my list (and all
my paths) is called "testlist".

So, am i right to guess that i should replace the program test-archiver
with a script that calls mhonarc?

I am just learning all this business. Is there a "block diagram" somewhere
that shows the flow of the program?

Thanks again,

Steve

On Wed, 5 Apr 2000, Todd Pfaff wrote:

> 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