[Mailman-Users] archiving partial duplicates

Patrick Bogen pdbogen at gmail.com
Fri Apr 7 17:18:43 CEST 2006


On 4/6/06, Dragon <dragon at crimson-dragon.com> wrote:
> So if you decided 500 was a good number to index, for the first chunk
> you would do:
>
>          bin/arch --wipe --start=1 --end=500 listname
>
> For subsequent chunks you would do (adjusting the start and end
> indexes of course...):
>
>          bin/arch --start=501 --end=1000 listname
>

Bash can do this for you:

#!/bin/bash
bin/arch --wipe
for i in `seq 0 10`
do
    bin/arch --start=$(( 1+$i*500 )) --end=$(( 500+$i*500 )) listname
done

...Assuming that bin/arch --wipe alone does what I think it does.
Also, if you have more than 5500 messages in the mbox file, you'll
need to adjust the second argument in the 'seq' upwards. And, of
course, replace 'listname' with the list name.

--
- Patrick Bogen



More information about the Mailman-Users mailing list