On Wed, Dec 13, 2000 at 02:11:05PM +0100, bigler(_at_)ens2m(_dot_)fr wrote:
My question is : things work fine and I could be happy there, however
in the 'from' procmail log file I get the following message :
'procmail: Unexpected EOL'
I think you need to add another nesting block:
:0
* ^Subject: send.*file *[0-9a-z]
* !^X-Loop: bigler(_at_)ens2m(_dot_)fr
* !^Subject:.*Re:
* !^FROM_DAEMON
* !^Subject: send.*file *.*[/.]\.
{
MAILDIR=$HOME/Mail/fileserver # chdir to the fileserver directory
SHELL=/bin/sh
:0 fhw # reverse mailheader and extract name
* ^Subject: send.*file *\/[^ ]*
{
FILE="$MATCH" # the requested filename
:0
| formail -rA "X-Loop: bigler(_at_)ens2m(_dot_)fr
}
:0 ah
| (cat - > $MAILDIR/tmp 2>&1 ; touch $MAILDIR/log ; cat $MAILDIR/tmp >>
$MAILDIR/log 2>&1 ; cat $MAILDIR/tmp ./$FILE 2>&1) | $SENDMAIL -oi -t
}
The touch in the final step is probably not needed either. Cat will create
$MAILDIR/log if it doesn't exist already.
--
Andrew Edelstein http://andrew.pure-chaos.com
"[1] The little balls that when turned in one's hand emit a chiming noise. If
you hear a moaning noise you are turning the wrong set, but your efforts will
most likely be appreciated."
Glenn Morgan, Userfriendly fan list
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail