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

BERTHOLD Jean Jean.BERTHOLD at eosholding.ch
Tue Feb 3 14:01:05 CET 2004


Yes, you are right ...

at first I tried to add swap
After that I tried to modify vi settings: set directory=/another_dir

it was not sufficient ...

Finally I used the split command:

split -b 25m file.mbox

result file1 file2 file3 ...

edit files to delete old emails

cat file1 filefile3 > new.mbox

and run arch command on this new.mbox file
Now, everything work fine !

Question: I tried to split my big mbox file into 50 MB file and 50 MB was too large
(even with set directory=/big_space_directory)

Is it an vi limit or an system limit ?


Thanks and have a nice day !

Jean


-----Message d'origine-----
De : gebser at speakeasy.net [mailto:gebser at speakeasy.net]
Envoyé : mardi, 3. février 2004 13:31
À : mailman-users at python.org
Objet : RE: [Mailman-Users] How to purge correctly old messages ?



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.
=
=


------------------------------------------------------
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/

This message was sent to: jean.berthold at eosholding.ch
Unsubscribe or change your options at
http://mail.python.org/mailman/options/mailman-users/jean.berthold%40eosholding.ch




More information about the Mailman-Users mailing list