procmail
[Top] [All Lists]

Re: question about .procmailrc 'file server' feature

2000-12-13 11:31:15
On 13 Dec, bigler(_at_)ens2m(_dot_)fr wrote:
| 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,

My guess is a missing ending quote on the formail insertion of the
X-Loop: header.



_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>