Mail archiving
Martijn van Oosterhout
kleptog at svana.org
Thu Sep 5 17:25:09 EST 2002
On Thu, Sep 05, 2002 at 02:38:12PM +1000, Tim Potter wrote:
> On Thu, Sep 05, 2002 at 02:29:54PM +1000, Tim Potter wrote:
> > lockfile foo.mbox
> > grepmail -d "since 3 months ago" foo.mbox > foo-new.mbox
> > [ $? = 0 ] && mv foo-new.mbox foo.mbox
> > rm -f foo.mbox.lock
>
> Hmm - OK this doesn't do exactly what you want. It was copied from a
> script that I use to delete my old mail rather than archive it. Who
> reads old mail anyway? (-:
Oh, looks neat. I've never heard of grepmail before. I'll check it out,
thanks!
--
Martijn van Oosterhout <kleptog at svana.org> http://svana.org/kleptog/
> There are 10 kinds of people in the world, those that can do binary
> arithmetic and those that can't.
More information about the linux
mailing list