[Mailman-Users] How to purge correctly old messages ?

gebser at speakeasy.net gebser at speakeasy.net
Tue Feb 3 13:30:33 CET 2004


First, increasing the size of your swap won't solve the problem with vi.  
It needs disk space, probably in your /tmp directory.

If you just want to edit this file without reconfiguring your system for
vi, you could try using emacs.  I use both vi and emacs every day, but
prefer emacs for most things.  Unless you specifically chose not to
install it, emacs should already be installed on your system.  From a
terminal window, just do "emacs [filespec] &".  You don't need to know
the keyboard commands for emacs either.  You can just highlight text 
by dragging the mouse over it, then use menus ("Edit | Cut" and ("File | 
Save Current Buffer") to work on your big file.


hth,
ken


At 15:21 (UTC+0100) on Thu, 29 Jan 2004 BERTHOLD Jean said:

=Hello John,
=
=Thanks for your help, it is exactly what I need !
=
=But:
=mailman at vanuatu # pwd
=/usr/local/mailman/archives/private/etrans-echanges.mbox
=mailman at vanuatu # ls -l
=total 1327072
=-rw-rw-r--   1 mailman  mailman  679109463 Jan 29 14:40 etrans-echanges.mbox
=mailman at vanuatu # vi etrans-echanges.mbox	
=mailman at vanuatu # vi etrans-echanges.mbox
="etrans-echanges.mbox" Tmp file too large
=    </TimeIntervalQuantities>
=    <TimeIntervalQuantities>
=      <QuantityTimeInterval value="2003-06-16T17:00:00Z/2003-06-16T18:00:00Z" />
=      <Quantity value="0.0" />
=    </TimeIntervalQuantities>
=    <TimeIntervalQuantities>
=      <QuantityTimeInterval value="2003-06-16T18:00:00Z/2003-06-16T19:00:00Z" />
=      <Quantity value="0.0" />
=    </TimeIntervalQuantities>
=    <TimeIntervalQuantities>
=      <QuantityTimeInterval value="2003-06-16T19:00:00Z/2003-06-16T20:00:00Z" />
=~
=~
=~
=~
=~
=~
=~
=~
=~
=~
=~
=~
=
= Tmp file too large
=:
=
=I tried to add more swap, but unsuccesfully ...
=
=
=root at vanuatu # mkfile 1000M /export/swapfile
=root at vanuatu # swap -a /export/swapfile
=root at vanuatu # swap -l
=swapfile             dev  swaplo blocks   free
=/dev/md/dsk/d10     85,10     16 1052624 1045120
=/export/swapfile      -       16 2047984 2047984
=root at vanuatu # 
=
=Result was the same as previous:
=
= Tmp file too large
=
=One more question:
=------------------
=
=how to edit this big file ?
=
=mailman at vanuatu # pwd
=/usr/local/mailman/archives/private/etrans-echanges.mbox
=mailman at vanuatu # du -sh *.mbox
= 648M   etrans-echanges.mbox
=mailman at vanuatu # 
=
=
=Thanks again for your help
=
=
=Jean
=
=
=
=
=-----Message d'origine-----
=De : John DeCarlo [mailto:jdecarlo at mitre.org]
=Envoyé : jeudi, 29. janvier 2004 14:41
=À : BERTHOLD Jean
=Cc : mailman-users at python.org
=Objet : Re: [Mailman-Users] How to purge correctly old messages ?
=
=
=Jean,
=
=BERTHOLD Jean wrote:
=> root at vanuatu # pwd
=> /usr/local/mailman/archives/private
=> root at vanuatu # 
=> root at vanuatu # du -sh etrans*
=>  2.4G   etrans-echanges
=>  645M   etrans-echanges.mbox
=>...
=> -- How to remove the oldest messages correctly ?
=
=The recommended method to reduce or change your archive is to edit the 
=file .../private/etrans-echanges.mbox/etrans-echanges.mbox and remove 
=the older messages from the file.
=
=Once you have done this, you can run
=   /usr/local/mailman/bin/arch --wipe etrans-echange
=
=You can also try and figure out which message in the mbox file you want 
=to start archiving (instead of deleting them from the file) and run
=
=  .../bin/arch --start=N --wipe etrans-echange
=
=At least this should get you started.
=
=





More information about the Mailman-Users mailing list