JohnnyGTO Tux's lil' helper


Joined: 20 Apr 2002 Posts: 91
|
Posted: Tue Feb 25, 2003 8:42 pm Post subject: Procmail and .maildir |
|
|
I am trying to learn how procmail and .maildir work together.
Currently I am running a older machine with Fetchmail -> Postfix -> Procmail ->Spamassassin -> UW-Imap. It orks ok but not great and the machine is running and older copy of Mandrake.
I want to upgrade to a newer machine and Gentoo (of course). What I would like to use is Getmail ->(?) Postfix -> Procmail ->Spamassassin-> Courier-Imap and this is where I'm having trouble.I have a number of procmail scripts that work with UW-Imap but not Courier-Imap. One creates directories based on the month and catagory others are straight forward but I can't get procmail to process them.
MONTHFOLDER= `date +%y-%m`
:0 Wic
* ? test ! -d brightnoise/$MONTHFOLDER
| mkdir brightnoise/$MONTHFOLDER
:0
* ^FROM.@brightnoise.com
{
:0c
brightnoise/${MONTHFOLDER}/Brightnoise
:0c
ToDay
}
What changes do I need to make in referring to directories and should I use maildirmake rather then mkdir to create the various directories on the fly? |
|