procmail
[Top] [All Lists]

problem with |

1995-11-07 12:08:06
Could anybody help me, because I cannot pipe mail to filter

This is the part of .procmailrc file:
-------------------------------------------------------------------
MAILDIR=$HOME/mail/incoming     
DEFAULT=$MAILDIR/other.inbox
LOGFILE=$HOME/from
LOCKFILE=$HOME/.lockmail

# skipped...

:0                              
* ^From.*shekvl  
|awk '/Series/{exit};{print}' >>$MAILDIR/tonite.inbox
-------------------------------------------------------------------

These are the results of mail processing (from log file):
-------------------------------------------------------------------
stty: : No such device
stty: : No such device
stty: : No such device
/bin/sh: From: cannot execute
/bin/sh: Received:: cannot execute
/bin/sh: Tue,: cannot execute
/bin/sh: Date:: cannot execute
/bin/sh: syntax error at line 4: `(' unexpected
procmail: Error while writing to "awk '/Series/{exit};{print}' 
$MAILDIR/tonite.inbox"
From shekvl  Tue Nov  7 11:49:40 1995
  Folder: /usr2/users/students/shekvl/mail/incoming/other.inbox           71761
--------------------------------------------------------------------
It doesn't matter what filter I use instead awk - results are always 
the same. Separate mailboxes work. Seems like sh tries to treat my mail like
script.

Ultrix 4.2. - user account
procmail is launched using .forward:

"|IFS=' ' && exec /usr2/users/students/shekvl/bin/procmail -f- || exit 75 
#shekvl"

Thank you for advance.

Vladimir A. Shekhovtsov (shekvl(_at_)sncac(_dot_)snc(_dot_)edu)


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