Hi,
New incomming Mail is in $HOME/Maildir.
I want Procmail to sort the messages from $HOME/Maildir into destinated
directories.
When I used Exim I started Procmail with the following script:
# ! /bin/sh
ORGMAIL=/var/spool/mail/mark
if cd $HOME &&
test -s $ORGMAIL &&
lockfile -r0 -l1024 .newmail.lock 2>/dev/null
then
trap "rm -f .newmail.lock" 1 2 3 13 15
umask 077
lockfile -l1024 -ml
cat $ORGMAIL >>.newmail &&
cat /dev/null >$ORGMAIL
lockfile -mu
formail -s procmail <.newmail &&
rm -f .newmail
rm -f .newmail.lock
fi
exit 0
I want to keep this but Procmail must handle maildir now.
Is it necessary to patch Procmail (v3.11pre7 from Debian 2.0) ?
(What's the right way to do this: "patch procmail procmail-patch" or:
"patch -pnum <procmail-patch" ?)
And the new Desing of the script?
thanks,
Mark Weinem