Hi
I've implemented a simple 'file server ' feature in my .procmailrc
following the 'man 5 procmailex' document. I have added a 'log file'
feature to keep a copy of to whom and where I automaticaly send files.
: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
:0 fhw # reverse mailheader and extract name
* ^Subject: send.*file *\/[^ ]*
| formail -rA "X-Loop: bigler(_at_)ens2m(_dot_)fr
FILE="$MATCH" # the requested filename
SHELL=/bin/sh
: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
}
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'
procmail: Unexpected EOL
Subject: Re: send file test
Folder: (cat - > $MAILDIR/tmp 2>&1 ; touch $MAILDIR/log ; cat $MAILD 188
The action is correctly done, however without my implementation of a
log file, I lose in the 'from' file the information from where the
mail comes.
can anybody tell me where is the faulty line in the above code ? or
how can I debug this ?
I'm using procmail v3.14 1999/11/22
Thanks for help,
--
Emmanuel BIGLER
<bigler(_at_)ens2m(_dot_)fr>
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail