looking for nice way to throw out old mail in mutt

2000-03-23 Thread esoR ocsirF
Hello  Dusers,
I like being subscribed to debian user. I also end up not being able to
read it from lack of time. I have exim filter debiaan user into its own
mailbox, but I would like to be able to have messages over a week (or
some other arbitrary time) fed to the /dev/null monster. Does any one
have a nice way to do this? TIA

-- 
Frisco Rose By any other name, I would smell the same
E.O.U. Student  [EMAIL PROTECTED] (541) 962-2987

Science Journal Ed. [EMAIL PROTECTED]
EOU Hoke Center 307 (541) 962-3787
La Grande, OR. 97850


Re: looking for nice way to throw out old mail in mutt

2000-03-23 Thread Colin Watson
[EMAIL PROTECTED] (esoR ocsirF) wrote:
I like being subscribed to debian user. I also end up not being able to
read it from lack of time. I have exim filter debiaan user into its own
mailbox, but I would like to be able to have messages over a week (or
some other arbitrary time) fed to the /dev/null monster. Does any one
have a nice way to do this? TIA

I do this by gatewaying the messages to local newsgroups with an
assemblage of fetchmail-exim-mail2news-inn. It's a bit complicated to
set up, though, so you may want to consider a cron job instead!

(Messages will be in arrival order in your mailbox, so you can probably
exploit that ...)

-- 
Colin Watson   [EMAIL PROTECTED]


Re: looking for nice way to throw out old mail in mutt

2000-03-23 Thread Oswald Buddenhagen
 I like being subscribed to debian user. I also end up not being able to
 read it from lack of time. I have exim filter debiaan user into its own
 mailbox, but I would like to be able to have messages over a week (or
 some other arbitrary time) fed to the /dev/null monster. Does any one
 have a nice way to do this? TIA
 
make a cron-job, which checks your mailbox every day. i've attached a
script, which removes all messages, which are older that 7 days.
please test this thing thoroughly, as i programmed it now from scratch.

possibly there is a simpler way to do this ...

-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--
Linux - the last service pack you'll ever need.
#!/bin/bash
# the following line would be MB=$1, if you wanted to pass the mailbox
# to process as an argument to the script
MB=~/debian.mbox
formail -s bash -c IFS=''; b=\`cat\`; test \$(date -d \\$( echo \$b|formail 
-x Date )\ +%s ) -ge \$(date -d \7 days ago\ +%s )  echo -e \\$b\n\n\ 
$MB $MB.new  mv $MB.new $MB