I would like to change this so that I use IMAP in both cases, and that the folders are available, and filtered, on the server rather than on the client. I am 90% sure that the tool I want to use for this is procmail.
However, I am already using procmail to route my mail through spamassassin, so I need to make sure that that happens before any other filtering. One of my filters would be to direct spam to an appropriate folder where I can deal with it safely.
So my question is, "Do any of my friends have a reference that they can point me to that will help with setting up the procmailrc file that will allow me to do this filtering?"