On Wed, Aug 18, 1999 at 09:35:20PM -0230, Chris Gushue wrote:
> Is there a way to archive mailboxes at the beginning of every month (or
> some other period) like Pine does? Just after a couple weeks, my
> debian-user mailbox (mbox) is 3.6 MB with over 1200 messages. As the
> mailbox gets bigger, Mutt takes longer to open it.
>
> Eg. move the contents of debian-user to debian-user-1999-aug
>
> Any solution would be great, not necessarily a mutt-specific one
> (eg. procmail/crontab/scripts/etc). I'm sure I saw a message about this
> on a mailing list I am on, but couldn't find anything. Perhaps it was on
> a newsgroup somewhere...
Heh, here's another one:
#!/bin/sh
LISTDIR=$HOME/.mail/Lists
ARCHIVEDIR=$HOME/.mail/Archives
DATEDIR="${ARCHIVEDIR}/`date +%m-%d-%Y`"
umask 077
if [ -d ${LISTDIR} ]; then
mkdir -p ${DATEDIR}
for i in ${LISTDIR}/*
do
mv $i ${DATEDIR}
done
fi
Then I have a crontab like this:
15 05 * * 2,5 $HOME/bin/cron-mail
--
BJ Goodwin <[EMAIL PROTECTED]>
C85E 4F1C 34D4 8272 DED9 471A D427 EB20 54B0 35D1
Key ID: 54B035D1
PGP signature