On Sat, 13 Sep 1997, Paul Miller wrote: > Here's what I want to do: > > 1) mail addressed to me goes into the inbox (even from mailing lists) > 2) mailing lists are separated (already working) > 3) remaining messages go into a junk folder > > any ideas?
Sure. This is what I do, except for the junk part, which I've been meaning to add for a while and just did. I notice most spam has bogus or useless To: lines, so that makes filtering that nasty stuff all the easier. Here's an abbreviated version of my .procmailrc: --- SNIP --- PATH=$HOME/bin:/usr/local/bin:/usr/bin:/bin MAILDIR=$HOME/mail # you'd better make sure it exists # DEFAULT=$MAILDIR/default # completely optional LOGFILE=$MAILDIR/logfile # recommended # Use the Sender: (or Resent-Sender:) line if it exists, b/c that way we # don't have to worry about messages cc'ed to me personally when I also # belong to the list :0: * ^Sender: JS Bach and other Early and Baroque Music List <[EMAIL PROTECTED]>.* bach-list :0: * ^Resent-Sender: debian-announce-request.* debian-announce :0: * ^Resent-Sender: debian-changes-request.* debian-changes :0: * ^Resent-Sender: debian-devel-request.* debian-devel :0: * ^Resent-Sender: debian-user-request.* debian-user # NASANews only comes from one address, so this is easy :0: * ^From: [EMAIL PROTECTED] nasanews :0: * !^To: .*branden.* junk --- SNIP --- Explanation: since I use the recommended .forward: "|IFS=' ' && exec /usr/bin/procmail -f- || exit 75 #branden" Anything not processed by the .procmailrc stays in the inbox. This is what we want. All the mailing list stuff is sorted out -- if you want for some reason to collapse all your mailing lists into one box, I think you can just pile all those asterisk lines into one recipe and dump them to "mailing-list" or something. Note the last line. I'm liberal with the "To:" field because I get mail forwarded to the home box from all kinds of places. The ! in front of it just says "not". There you go. -- G. Branden Robinson | "I came, I saw, she conquered." The Purdue University | original Latin seems to have been [EMAIL PROTECTED] | garbled. http://www.ecn.purdue.edu/~branden/ | -- Robert Heinlein -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED] .