On Sat Jan 30, 1999 at 08:19:13AM +1100, [EMAIL PROTECTED] wrote: > G'day to all, could someone help this slow newbie to sort my mailing lists > i'm using mutt and sifting through my mail manually is now quite a chore i > would like to sort them ie: deb-user'luv'etc into there own mailbox when > fetching mail perhaps a copy of a .m > uttrc might be helpfull for the commands?? anyhow any help would be > greatfully appreciated i uuse smail and fetchmail is the command i use to > retrieve mail Thanks for your time:-) > > Craig McVean.......... > > > -- > Unsubscribe? mail -s unsubscribe [EMAIL PROTECTED] < /dev/null >
I use the same combination but use procmail to sort the mail into different mailboxes. Under my user area i have the following diectory structure .mutt - contains muttrc and aliases files .procmail - contains procmail recepies Mail\spool Mail\current OK first you need a .procmailrc something like this:- #Set on when debugging VERBOSE=off #Replace `mail' with your mail directory (Pine uses mail, Elm uses Mail) MAILDIR=$HOME/Mail #Directory for storing procmail log and rc files PMDIR=$HOME/.procmail LOGFILE=$PMDIR/log INCLUDERC=$PMDIR/rc.maillists INCLUDERC=$PMDIR/rc.else And a .forward file thus:- "|IFS=' ' && exec /usr/bin/procmail -f- || exit 75 #yourusername" Next lets look at the recipies in the .procmail directory, first the rc.maillists:- :0: * ^(Resent-)?Sender: (owner-)?mutt-users(-request)[EMAIL PROTECTED] * $ !^(To|Cc|From):.*$pat.colbeck spool/Mutt :0: * ^(Resent-)?Sender: (owner-)?debian-user(-request)[EMAIL PROTECTED] * $ !^(To|Cc|From):.*$pat.colbeck spool/Debian :0: * ^(Resent-)?Sender: (owner-)?majordom-wmaker-owner(-request)[EMAIL PROTECTED] * $ !^(To|Cc|From):.*$pat.colbeck spool/WindowMaker :0: * ^(Resent-)?Sender: (owner-)?oldtools(-request)[EMAIL PROTECTED] * $ !^(To|Cc|From):.*$pat.colbeck spool/Old-Tools :0: * ^(Resent-)?Sender: (owner-)?gnome-list(-request)[EMAIL PROTECTED] * $ !^(To|Cc|From):.*$pat.colbeck spool/Gnome :0: * ^To: .*playground.sun.com spool/LandRover :0: * ^To: .*playground.sun.com spool/LandRover This delivers all mail from the maillists to ~/Mail/spool/"maillistname" My posix expresion programing is not the best and the occasional mail missed thes filters and gets dropped in my inbox so check them yourself. Next we have the recipie rc.else which should catch anything not matched by rc.maillists :0: * ^From: .*cisco.com spool/Cisco :0: * ^From: .* spool/INBOX OK now we have all the mail in different spool directories under ~/Mail/spool I like to have it like that incoming to a spool directory and the automove it to a current directory as I read it. This lets me use V< under Xemacs as well if I feel that way inclined (not often these days). Here is my .muttrc which is just a link the real muttrc under ~/.mutt ######################################################################################## # # This rc file just sources the real one in .mutt # ######################################################################################## source ~/.mutt/muttrc Now for the relevent parts of my muttrc ############################################################################### # # Pat's Muttrc # Nothing goes in if I dont know what it does. # ############################################################################### reset all # reset all variables to system defaults. set move=yes # Move mail-spool to $mbox? # # Paths: # ("unset" implies the compile time defaults) # set folder=~/Mail # where are the mailboxes (+ and = are shortcuts) # # Mailinglists: # lists rro uk-lro oldtools gnome-list wmaker debian-user # # mailboxes filename [ filename ... ] # (check the files for new mails. Space cycles between them) # mailboxes +spool/INBOX +spool/Cisco +spool/WindowMaker \ +spool/Gnome +spool/Mutt +spool/LandRover +spool/Old-Tools \ +spool/Debian mbox-hook +spool/INBOX +current/INBOX mbox-hook +spool/WindowMaker +current/WindowMaker mbox-hook +spool/Cisco +current/Cisco mbox-hook +spool/LandRover +current/LandRover mbox-hook +spool/Mutt +current/Mutt mbox-hook +spool/Mutt +current/Mutt mbox-hook +spool/Gnome +current/Gnome mbox-hook +spool/Old-Tools +current/Old-Tools mbox-hook +spool/Debian +current/Debian # # Aliases: # (called in ~/.muttrc to load them only once) # set alias_file=~/.mutt/aliases # add the Aliases here source ~/.mutt/aliases # and include all existing aliases Well I hope this clears things up a bit for you. Pat -- ________________________________________________________________________ Patrick Colbeck email: [EMAIL PROTECTED] Senior Analyst tel: you dont seriously expect me to Azlan Ltd give that out on the internet do you ? ________________________________________________________________________