Kyle Wheeler wrote:

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.


BINC is set up to use IMAPdir is this why i am having problems what do you mean by the above statement. just a bunch of Maildir's

I set

MAILDIR=$HOME/IMAPdir

now i get this in my pmlog note the "//" but i still get my mail is this correct??

v22.computerking.ca > ~ $tail -f Procmail/pmlog
procmail: No match on "^Subject:.*cron"
procmail: No match on "^Subject:.*daily run output"
procmail: No match on "^Subject:.*weekly run output"
procmail: No match on "^Subject:.*monthly run output"
procmail: No match on "^Subject:.*MAILER-DAEMON"
procmail: Assigning "LASTFOLDER=/home/rmvg/IMAPdir//INBOX/new/1099639225.23178_0.v22.computerking.ca"
procmail: Notified comsat: "[EMAIL PROTECTED]:/home/rmvg/IMAPdir//INBOX/new/1099639225.23178_0.v22.computerking.ca"
From [EMAIL PROTECTED] Fri Nov 5 00:20:25 2004
Subject: test procmail 100
Folder: /home/rmvg/IMAPdir//INBOX/new/1099639225.23178_0.v22.compute 798




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/






Reply via email to