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 : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Envoyé : mardi, 3. février 2004 13:31 À : [EMAIL PROTECTED] 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: [EMAIL PROTECTED] # pwd =/usr/local/mailman/archives/private/etrans-echanges.mbox [EMAIL PROTECTED] # ls -l =total 1327072 =-rw-rw-r-- 1 mailman mailman 679109463 Jan 29 14:40 etrans-echanges.mbox [EMAIL PROTECTED] # vi etrans-echanges.mbox [EMAIL PROTECTED] # 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 ... = = [EMAIL PROTECTED] # mkfile 1000M /export/swapfile [EMAIL PROTECTED] # swap -a /export/swapfile [EMAIL PROTECTED] # swap -l =swapfile dev swaplo blocks free =/dev/md/dsk/d10 85,10 16 1052624 1045120 =/export/swapfile - 16 2047984 2047984 [EMAIL PROTECTED] # = =Result was the same as previous: = = Tmp file too large = =One more question: =------------------ = =how to edit this big file ? = [EMAIL PROTECTED] # pwd =/usr/local/mailman/archives/private/etrans-echanges.mbox [EMAIL PROTECTED] # du -sh *.mbox = 648M etrans-echanges.mbox [EMAIL PROTECTED] # = = =Thanks again for your help = = =Jean = = = = =-----Message d'origine----- =De : John DeCarlo [mailto:[EMAIL PROTECTED] =Envoyé : jeudi, 29. janvier 2004 14:41 =À : BERTHOLD Jean =Cc : [EMAIL PROTECTED] =Objet : Re: [Mailman-Users] How to purge correctly old messages ? = = =Jean, = =BERTHOLD Jean wrote: => [EMAIL PROTECTED] # pwd => /usr/local/mailman/archives/private => [EMAIL PROTECTED] # => [EMAIL PROTECTED] # 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 [EMAIL PROTECTED] 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: [EMAIL PROTECTED] Unsubscribe or change your options at http://mail.python.org/mailman/options/mailman-users/jean.berthold%40eosholding.ch ------------------------------------------------------ Mailman-Users mailing list [EMAIL PROTECTED] 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: [EMAIL PROTECTED] Unsubscribe or change your options at http://mail.python.org/mailman/options/mailman-users/archive%40jab.org