RE: [Mailman-Users] How to purge correctly old messages ?
Hello John,
Thanks for your help, it is exactly what I need !
But: mailman@vanuatu # pwd /usr/local/mailman/archives/private/etrans-echanges.mbox mailman@vanuatu # ls -l total 1327072 -rw-rw-r-- 1 mailman mailman 679109463 Jan 29 14:40 etrans-echanges.mbox mailman@vanuatu # vi etrans-echanges.mbox mailman@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@vanuatu # mkfile 1000M /export/swapfile root@vanuatu # swap -a /export/swapfile root@vanuatu # swap -l swapfile dev swaplo blocks free /dev/md/dsk/d10 85,10 16 1052624 1045120 /export/swapfile - 16 2047984 2047984 root@vanuatu #
Result was the same as previous:
Tmp file too large
One more question:
how to edit this big file ?
mailman@vanuatu # pwd /usr/local/mailman/archives/private/etrans-echanges.mbox mailman@vanuatu # du -sh *.mbox 648M etrans-echanges.mbox mailman@vanuatu #
Thanks again for your help
Jean
-----Message d'origine----- De : John DeCarlo [mailto:jdecarlo@mitre.org] Envoyé : jeudi, 29. janvier 2004 14:41 À : BERTHOLD Jean Cc : mailman-users@python.org Objet : Re: [Mailman-Users] How to purge correctly old messages ?
Jean,
BERTHOLD Jean wrote:
root@vanuatu # pwd /usr/local/mailman/archives/private root@vanuatu # root@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.
--
John DeCarlo, My Views Are My Own
Jean,
BERTHOLD Jean wrote:
mailman@vanuatu # pwd /usr/local/mailman/archives/private/etrans-echanges.mbox mailman@vanuatu # ls -l total 1327072 -rw-rw-r-- 1 mailman mailman 679109463 Jan 29 14:40 etrans-echanges.mbox mailman@vanuatu # vi etrans-echanges.mbox mailman@vanuatu # vi etrans-echanges.mbox "etrans-echanges.mbox" Tmp file too large
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.
I didn't pay very close attention to the size originally.
So my next guess is to try the "--start=N" option I mentioned above. See if you can figure out approximately how many messages you want to discard, by looking at the archives.
People with more Linux experience can suggest better approaches.
You can get fairly close to the number of messages in the .mbox file by running grep and wc:
grep "Return-Path:" etrans-echange.mbox | wc -l
This will tell you how many lines in the .mbox file have Return-Path: in them.
If not, just use trial and error. Start with some number like half of the number you got above and if you have too many messages left in the archives, go up as needed.
--
John DeCarlo, My Views Are My Own
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@vanuatu # pwd =/usr/local/mailman/archives/private/etrans-echanges.mbox =mailman@vanuatu # ls -l =total 1327072 =-rw-rw-r-- 1 mailman mailman 679109463 Jan 29 14:40 etrans-echanges.mbox =mailman@vanuatu # vi etrans-echanges.mbox =mailman@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@vanuatu # mkfile 1000M /export/swapfile =root@vanuatu # swap -a /export/swapfile =root@vanuatu # swap -l =swapfile dev swaplo blocks free =/dev/md/dsk/d10 85,10 16 1052624 1045120 =/export/swapfile - 16 2047984 2047984 =root@vanuatu #
=Result was the same as previous:
= Tmp file too large
=One more question:
= =how to edit this big file ?
=mailman@vanuatu # pwd =/usr/local/mailman/archives/private/etrans-echanges.mbox =mailman@vanuatu # du -sh *.mbox = 648M etrans-echanges.mbox =mailman@vanuatu #
= =Thanks again for your help
= =Jean
=
= =-----Message d'origine----- =De : John DeCarlo [mailto:jdecarlo@mitre.org] =Envoyé : jeudi, 29. janvier 2004 14:41 =À : BERTHOLD Jean =Cc : mailman-users@python.org =Objet : Re: [Mailman-Users] How to purge correctly old messages ?
= =Jean,
=BERTHOLD Jean wrote: => root@vanuatu # pwd => /usr/local/mailman/archives/private => root@vanuatu # => root@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.
=
participants (3)
-
BERTHOLD Jean
-
gebser@speakeasy.net
-
John DeCarlo