On Thursday, November  4 at 05:06 PM, quoth RYAN vAN GINNEKEN:
> # Mailboxes served by UW IMAP are sometimes in $HOME

Heh

> MAILDIR=$HOME/IMAPdir

Procmail will think this is an mbox - Maildir's must end in a / to 
indicate that it's a Maildir and not an mbox. If BincIMAP is set up to 
use IMAPdir, though, $HOME/IMAPdir will not be a Maildir, but will 
instead just be a folder containing a bunch of Maildir's.

> DEFAULT= $HOME/IMAPdir/INBOX

This needs to end in a / in order to be recognized as a Maildir by 
procmail.

> # IMPORTANT: Upon reading a line that begins with MAILDIR=
> #            Procmail does a chdir to $MAILDIR and
> #            relative paths are relative to $MAILDIR

If MAILDIR has some special meaning to procmail... I don't know. I don't 
use it.

> :0
> $MAILDIR

$MAILDIR is $HOME/IMAPdir, which, because it doesn't end in a /, 
Procmail thinks it should be treated as a file (as an mbox).

> rc.servers
> 
> # This file contians the filters for the server messages
> # Rember that order is important
> 
> :0
> * ^Subject:.*security run output
> IN-SERVERS.Security/

I assume this relies on MAILDIR being set?

> :0
> * ^Subject:.*daily run output
> IN-SERVERS.Daily

Missing /

> procmail: [19721] Thu Nov  4 16:51:48 2004
> procmail: Assigning "MAILDIR=/home/rmvg/IMAPdir"
> procmail: Assigning "DEFAULT=/home/rmvg/IMAPdir/INBOX/"
> procmail: Assigning "INCLUDERC=/home/rmvg/Procmail/rc.servers"
> procmail: No match on "^Subject:.*security run output"
> procmail: No match on "^Subject:.*cron"
> procmail: Match on "^Subject:.*daily run output"
> procmail: Assigning "LASTFOLDER=IN-SERVERS.Daily/msg.9Ub"
> procmail: Opening "IN-SERVERS.Daily/msg.9Ub"
> procmail: Acquiring kernel-lock
> procmail: Notified comsat: 
> "[EMAIL PROTECTED]:/home/rmvg/IMAPdir/IN-SERVERS.Daily/msg.9Ub"

Looks like procmail is treating Daily as an mh directory, not a Maildir.

Here's the default procmail files that my users use, to help you figure 
it out. Hope it helps.

.procmailrc

COMSAT=no
DROPPRIVS=yes
DEFAULT="${HOME}/IMAPdir/"
VERBOSE="no"

:0 fw: spamassassin.lock
| spamc

:0 H
* ^X-Spam-Status: Yes
${DEFAULT}/INBOX.Spam/

:0
${DEFAULT}/INBOX/

-- 
If an elderly respected expert in a given field tells you that something
can be done he is almost certainly right. If an elderly respected expert
in a given field tells you that something is impossible, he is almost
certainly wrong.
-- Robert A. Heinlein

Attachment: signature.asc
Description: Digital signature

Reply via email to