On Tue, 27 Jun 2006 18:50:13 +1200
Don Gould <[EMAIL PROTECTED]> wrote:

> See:  
> http://www.tcn.bowenvale.co.nz/index.php?option=com_content&task=view&id=22&Itemid=8
> 
> You'll see that the mail ends up in my webmin folder most of the time.
> 
> What have I don't wrong?
> 
> Cheers Don

1. Are you using maildir format? (Yes, I answered my own question further down 
) If so, the slashes are going the wrong way.

:0
* ^(To|Cc):.*
CLUG\

This rule *should* match everything with a To: or Cc: line in it, making the 
rest of the rules pointless. Not too sure why it isn't


:0
* ^Subject:.*[webmin-l]
Webmin\

Square brackets have a special meaning ( look for one of the following 
characters ). This is why it's picking everything up. Escape them with a \

Here are a few examples from my .procmailrc, which delivers to the usual (ok 
courier) Maildir format with folders hidden ( as in the names start with a . ) 
below the inbox (the last one's a catchall to the inbox):

--8<--
MAILDIR=$HOME/Maildir
LOGFILE=$MAILDIR/procmail.log

:0
* ^(To|Reply-To):[EMAIL PROTECTED]
.CLUG/

:0
* ^Subject:.*\[Soekris\]
.Soekris/

:0
* ^Subject:.*\[GNUz\]
.GNUz/


:0
$MAILDIR/
--8<--

hth,

Steve

Reply via email to