[prev in list] [next in list] [prev in thread] [next in thread]
List: redhat-list
Subject: Re: mutt folders and filters
From: Kevin MacNeil <k.macneil () verizon ! net>
Date: 2003-09-21 14:01:58
[Download RAW message or body]
On Fri, Sep 19, 2003 at 11:03:24AM -1000, Marc Adler wrote:
> 2) use procmail to filter your messages to different mailboxes.
Nancy McGough has a very good procmail tutorial at the Infinite Ink
website (http://www.ii.com). She walks you through making a good
~/.procmailrc and making procmail recipies to sort your mail. Use her
templates and you'll be up and running in a few minutes.
You can even get statistics on which mail gets sorted into which folder
if you get cron (crontab -e) to call a script every night. Very
informative, especially if you're on as many mail lists as me.
1 0 * * * $HOME/bin/procmail_log.sh
#!/bin/bash
# procmail_log.sh: mail the daily procmail stats to $USER
mailstat $HOME/.procmail/log|mail $USER -s "`date '+%a %d %b %Y'` mail log"
> 3) configure mutt to read those different mailboxes. (All you have to
> do, actually, is point mutt to, say, 'mbox' in your /Mail directory
> and then you can move around to any other mailbox or directory using
> the 'c' command.)
You can tell mutt about your different mailboxes by saving something
like the following to your ~/.muttrc
# Make sure mutt knows where your mail folder is
set folder=~/Mail
# Tell me about mail in these mailboxes
mailboxes ! +root +maillog +crypto-gram +kernel-traffic +debian-announce +debian-user \
+ipcop-user +sv24 +shell.scripting +redhat-list +annoyances
You can also tell bash about these mailboxes by adding a few lines to
your ~/.bash_profile
MAILPATH=/var/spool/mail/$USER
for i in `echo ~/Mail/{root,maillog,crypto-gram,kernel-traffic,debian-announce,debian-user,ipcop-user,sv24,shell.scripting,redhat-list,annoyances}`
do
export MAILPATH=$MAILPATH:$i
done
unset i
Anyway, I get about 300 email messages a day and they're very easy to
deal with since the mail basically sorts itself. And also because of
spamassassin, but that's a different story.
--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic