tanger(_at_)HHI(_dot_)DE (Ralf Tanger) writes:
...
The script process_mail is the one, mentioned in the procmail man-page:
---- the script which checks my mailbox -------
#!/bin/sh
ORGMAIL=/var/mail/$LOGNAME
if cd $HOME &&
test -s $ORGMAIL &&
lockfile -r 0 -l 1024 .newmail.lock 2>/dev/null
then
trap "rm -f .newmail.lock" 1 2 3 13 15
umask 077
lockfile -l 1024 -ml
cat $ORGMAIL >>.newmail &&
cat /dev/null >$ORGMAIL
lockfile -mu
formail -ds procmail <.newmail &&
rm -f .newmail
rm -f .newmail.lock
fi
exit 0
--------- end of script which checks my mailbox ------
This is not quite the same as the one on the procmail manpage and the
differance is the problem. The key line in the above is the formail
invocation:
formail -ds procmail <.newmail &&
The example on the procmail(1) manpage runs:
formail -s procmail <.newmail &&
The -d flag is the source of your problem. Take that out and it will
no longer split the sub-messages.
Philip Guenther