IMAP Spam Folders
From Silenceisdefeat
To have your Spam flagged email go to a different folder than your Inbox, do the following
maildirmake ~/.mail/.Spam
then, edit your ~/.procmailrc to read the following:
MAILDIR=$HOME/.mail/ :0: * ^X-Spam-Status: Yes $HOME/.mail/.Spam/
In order to see your new Spam folder in your IMAP subsciption list, you should add the following to your ~/.mail/courierimapsubscribed
INBOX.Spam
Your Spam should now automatically go to your Spam IMAP folder.

