procmail
[Top] [All Lists]

what am I doing wrong?

1995-11-08 18:45:27

        Tested "simple fileserver", but I am getting this kind of 
        error msgs to logfile:

------
formail: formail: cannot open
procmail: Error while writing to "formail"
procmail: Rescue of unfiltered data succeeded
From hilonen  Thu Nov  9 03:02:08 1995
 Subject: send roster
  Folder: (cat; cat $FILES) |$SENDMAIL -oi -t                               746
biff failed:  cannot locate your tty:  ttyname() for file descriptor 2 returned 
NULL
------
My procmailrc looks like this:  
------



MAILDIR=$HOME/mail
DEFAULT=/var/mail/koski
LOGFILE=$MAILDIR/From
LOCKFILE=$HOME/.lockmail


:0
* ^Reply to.*torch_
Torch

:0
* !^X-Loop: koski(_at_)rieska(_dot_)oulu(_dot_)fi
* !^Subject:.*Re:
* !^FROM_DAEMON
* ^Subject:.*send
{
MAILDIR=$HOME/.files   # chdir to the fileserver directory
 
:0 h             # extract the requested filename(s)
FILES= | sed -n -e 's/^Subject:.*send )/1/p'
 
:0 f                # reverse the mailheader
| formail -rA "X-Loop: koski(_at_)rieska(_dot_)oulu(_dot_)fi"
 
:0
| (cat $FILES) | $SENDMAIL -oi -t
}
 
:0 A
/dev/null
 


 
.......................................................................
 Pekka Koski = koski(_at_)rieska(_dot_)oulu(_dot_)fi  -  CRIS #2351 ThreadNeck 
-=FAF=-  
  home+358-81-347892 data/fax+358-81-5542604 cellular+358-400-586946 
.......................................................................

        Windws is ine for bckgroun comunicaions - Bll Gats, 192
 

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