First off, I know that bits and pieces of this have been covered elsewhere, but I'm apparently not smart enough to figure it all out, so please be patient.
Here's what I would like to do: I have a catchall account that gets LOTS of spam (hundreds a day) but there are occasionally some important messages that I would like to get (and Thunderbird's filter just isn't cutting it). What I would like to do is retreive the messages from this account via fetchmail, and have procmail run them through spamassassin (or bogofilter, clamscan, whatever) and then place the messages in a local mailbox with good stuff in inbox and spam in a spam folder (or even just mark it as spam in the header so I can filter in the mail client).
I have tried setting up .fetchmailrc and .procmailrc files but seem to be failing miserably
#set filter = /usr/bin/procmail -m $HOME/.procmailrc
set daemon 180
poll pop.server.com with proto POP3
user [username] there with password [password] is [me] here
MAILDIR=$HOME/.maildir #you'd better make sure it exists
# Use maildir-style mailbox in user's home directory
Any detailed advice in how to set this up would be greatly appreciated. I'm running Ubuntu 6.06 if it matters.