[Mailman-Users] Safe Archive Clean

John W. Baxter jwblist at olympus.net
Mon Mar 7 19:41:25 CET 2005


Yes unless find finds "too many" files that match, in which case it's more
like
find /home/mailman/archives/private -ctime +30 | xargs rm -rf

xargs will batch the calls to rm with reasonable numbers of files (man xargs
for controlling batch size and other goodies)  And it will do other fun
things.  (I'm trusting your -ctime +30 predicate to find.)

If you can use exec ls {}
you can probably exec the rm.  (I always test my find blah | xargs with
something benign like ls before punging ahead.)

The xargs thing is faster for any non-small file count even if the exec
method works, and it's friendlier to the machine.

  --John


On 3/7/2005 8:59, "Young, Darren" <Darren.Young at ChicagoGSB.edu> wrote:

> Is it safe to simply do something such as this in the archive directory:
>  
> find /home/mailman/archives/private -ctime +30 -exec rm -fr {} \;
>  
>  
> 
> -----Original Message-----
> From: Tokio Kikuchi [mailto:tkikuchi at is.kochi-u.ac.jp]
> Sent: Sun 3/6/2005 1:08 AM
> To: Young, Darren
> Cc: mailman-users at python.org
> Subject: Re: [Mailman-Users] Safe Archive Clean
> 
> 
> 
> Hi,
> 
> Young, Darren wrote:
> 
>> Now, what I'm finding is that if a list has content filtering disabled,
>> or set to allow other MIME types through (such as HTML) and if a member
>> is of type digest and they have the plain option enabled for digests,
>> they receive a message in their digest with a URL of where they can see
>> a copy of the original message. The URL included has a pipermail address
>> in it. On the server, the file was placed in that directory however I
>> have pipermail disabled (since we don't support archives). Any way to
>> disable this part or do I just need to wipe those archived files?
> 
> Currently, the plain text digest saves attachments in the pipermail area
> on the hypothis that the archive is available. Or, the digest members
> have no means to get the attachments other than to decode MIME manually.
> You should wipe the archive periodically if you don't want those to be
> kept in the archive area. You may also have to tell the list owners (and
> users) your policy and not to use plain text digests but use mime digests.
> 
> You will have to hack the code if you want to do this silently.
> 
> --
> Tokio Kikuchi, tkikuchi@ is.kochi-u.ac.jp
> http://weather.is.kochi-u.ac.jp/
> 
> 
> 
> ------------------------------------------------------
> Mailman-Users mailing list
> Mailman-Users at python.org
> http://mail.python.org/mailman/listinfo/mailman-users
> Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
> Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
> Unsubscribe: 
> http://mail.python.org/mailman/options/mailman-users/jwblist%40olympus.net
> 
> Security Policy: 
> http://www.python.org/cgi-bin/faqw-mm.py?req=show&amp;file=faq01.027.htp




More information about the Mailman-Users mailing list