I am beginning to wounder why i ever switched to MAILDIR as it just make everything more complicated have been playing with procmail now for days and it still will not put the messages in the write folder. Have added the lines that were suggested below to my .procmailrc file. Have tried the recipes with "/" and "." for subfolders but nothing seems to work here is my .procmailrc, rc.servers recipe and my pmlog of what happens when i send mail that matches one of my filters. Please help as i am becoming very frustrated


.procmailrc

#### Begin Variables section ####

# It is essential that you set SHELL to a Bourne-type shell if
# external commands are run from your procmailrc, for example if
# you use rc.spamassassin, rc.quarantine, or other advanced recipes.
# Setting SHELL should not be needed for the simple sorting recipes in
# this step-by-step section, but to be safe and to future proof your
# procmailrc, set it anyway! Details are in Check Your $SHELL and $PATH.
SHELL=/bin/sh
#PATH=$HOME/bin:/usr/bin:/bin:/usr/local/bin:.

# Directory for storing procmail configuration and log files
# You can name this variable anything you like, for
# example PROCMAILDIR or don't set it (but then don't refer to it!)
PMDIR=$HOME/Procmail

# LOGFILE should be specified ASAP so everything below it is logged
# Put ## before LOGFILE if you want no logging (not recommended)
LOGFILE=$PMDIR/pmlog

# To insert a blank line between each message's log entry,
# uncomment next two lines (this is helpful for debugging)
LOG="
"

# Set to yes when debugging; VERBOSE default is no
VERBOSE=yes

# Replace $HOME/Msgs with the directory where your personal (non-system-spool) mail
# Mutt and elm use $HOME/Mail
# Pine uses $HOME/mail
# Netscape Messenger uses $HOME/nsmail
# Some NNTP clients, such as slrn & nn, use $HOME/News
# Mailboxes in maildir format or served by Courier IMAP are often in $HOME/Maildir
# Mailboxes served by UW IMAP are sometimes in $HOME
MAILDIR=$HOME/IMAPdir # This directory must exist & be writable by your LOGNAME
DEFAULT= $HOME/IMAPdir/INBOX # On most systems, your $MAILDIR is a sub
# IMPORTANT: Upon reading a line that begins with MAILDIR=
# Procmail does a chdir to $MAILDIR and
# relative paths are relative to $MAILDIR


#### End Variables section; Begin Processing section ####

INCLUDERC=$PMDIR/rc.servers
#INCLUDERC=$PMDIR/rc.subscriptions

# Messages that fall through all your procmail recipes are delivered
# to your default INBOX. To find out yours, see step 2 above.

#### End Processing section ####

:0
$MAILDIR


rc.servers

# This file contians the filters for the server messages
# Rember that order is important

:0
* ^Subject:.*security run output
IN-SERVERS.Security/

:0
* ^Subject:.*cron
IN-SERVERS.Cron/

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

:0
* ^Subject:.*weekly run output
IN-SERVERS.Weekly/

:0
* ^Subject:.*monthly run output
IN-SERVERS.Monthy/

:0
* ^Subject:.*MAILER-DAEMON
IN-SERVERS.Mailer-daemon/


pmlog

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"
From [EMAIL PROTECTED] Thu Nov 4 16:51:48 2004
Subject: daily run output
Folder: IN-SERVERS.Daily/msg.9Ub 849





Simon Comeau Martel wrote:

RYAN vAN GINNEKEN wrote:

I am useing Freebsd 4.10stable, postfix 2.Xsomethingnew, procmail version 3.22 and binc IMAP 1.2.8 binc uses Maildir style mail boxes and i have everthing set up to for $HOME/IMAPdir. Funny thing is pocmail sends me the mails it filters fine but the stuff it doesnt filter gets lost in my system mail box /var/mail/rmvg. I have included my .procmailrc, rc.test (reciepe file with test rule), and pmlog file for all to see and hopefully someone can help me solve this problem.
.procmailrc


Add this at the end of your .procmailrc
-------------
:0
$MAILDIR
-------------




Reply via email to