On Wed, Jun 23, 1999 at 09:39:23PM -0500, Alex Lane wrote:
> Please pardon what must be a newbie question, but there must be
> something I'm missing in the documentation to mutt. How does one
> arrange it so that mail from various lists (which invariably arrives
> addressed "To:" that list) is sorted into the appropriate mailboxes,
> short of doing it by hand?
>
> I have the following line in my .muttrc:
>
> lists list1 list2
Especially when it comes to mail handling there are a zillion ways to
do it, a lot of people use procmail in combination with mailing lists
though. To configure procmail
1. put the line "|/usr/bin/procmail" into you ~/.forward file. You
actually need and MTA (mail tranfser agent) like sendmail or exim
properly configured to recognise the forward file.
2. configure procmail (~/.procmailrc). I started with the following:
PATH=/usr/local/bin:/usr/bin:/bin
MAILDIR=$HOME/Mail
DEFAULT=$MAILDIR/inbox
:0
* ^X-Mailing-List: .*\/[a-z0-9][^ ]*@
{
LIST=`echo $MATCH | sed 's/@.*//;s/-list$//'`
:0
inbox.$LIST
}
It sorts all mail with an 'X-Mailing-List:' header into the right
mailbox.
3. ~/.muttrc:
mailboxes +inbox +inbox.ml1 +inbox.ml2 ...
--
+ PGP || GnuPG key -> finger [EMAIL PROTECTED] +
+++ Debian/GNU Linux <[EMAIL PROTECTED]> +++ ICQ: 2882018 +++