[Mailman-Users] pruning archives

2006-06-01 Thread Anne Ramey
Is this still the easiest way to prune archives?  Seems rather labor 
intensive...
http://www.python.org/cgi-bin/faqw-mm.py?req=showfile=faq03.003.htp 
http://www.python.org/cgi-bin/faqw-mm.py?req=showfile=faq03.003.htp

-- 
Anne Ramey


--
Mailman-Users mailing list
Mailman-Users@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/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=showamp;file=faq01.027.htp


Re: [Mailman-Users] pruning archives

2006-06-01 Thread Mike Brudenell
Greetings -

--On 1 June 2006 09:02:15 -0400 Anne Ramey [EMAIL PROTECTED] wrote:

 Is this still the easiest way to prune archives?  Seems rather labor
 intensive...
 http://www.python.org/cgi-bin/faqw-mm.py?req=showfile=faq03.003.htp
 http://www.python.org/cgi-bin/faqw-mm.py?req=showfile=faq03.003.htp

There are probably other utilities to do this task but the one that springs 
to my mind is mailutil from the University of Washington (UW) IMAP 
Utilities distribution.

mailutil was originally designed to create mail folders in particular 
storage formats, either locally or on a remote IMAP server.

However feeping creaturism added other facilities such as copying or moving 
messages between any combination of local and/or remote folders.

Amongst these is the prune option which lets you prune a mail folder 
based on a selection string.  The selection string itself is given in the 
format used by IMAP2's SEARCH command (RFC 117).  [I actually suspect it 
now supports IMAP4rev1's SEARCH command syntax (RFC 2060, section 6.4.4) 
... if this is indeed different.]

The example given in mailutil's man page is:

mailutil prune INBOX before 1-jan-2004

Because mailutil is built using the UW C-Client library it understands a 
great many different mail folder storage formats, and can certainly be used 
on traditional UNIX/Berkeley/mbox formatted folders.

You can see the man page for mailutil (and the other IMAP utilities) at

http://www.washington.edu/pine/man/#mailutil

Source code, and pre-built binaries for a number of platforms, for 
C-Client, Pine, the IMAP server and IMAP utilities can be found at:

http://www.washington.edu/pine/getpine/

mailutil is in its imap/src/mail/utils directory.

Alternatively you can just get the IMAP server + C-Client source code at:

ftp://ftp.cac.washington.edu:21//imap/imap.tar.Z

If I'm right in thinking this deletes messages from mail folders then you 
might find it a very useful tool: its selection criteria are very flexible, 
enabling you to select messages by date, sender, recipient, size, 
read/unread status, etc

CAUTION:
I have used mailutil to create mail folders and copy messages around,
but haven't yet tried its prune option.  However I'm expecting it
will work.

If someone tries it perhaps they could report back to the list?

Cheers,
Mike B-)

-- 
The Computing Service, University of York, Heslington, York Yo10 5DD, UK
Tel:+44-1904-433811  FAX:+44-1904-433740

* Unsolicited commercial e-mail is NOT welcome at this e-mail address. *
--
Mailman-Users mailing list
Mailman-Users@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/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=showamp;file=faq01.027.htp