procmail
[Top] [All Lists]

Undefined 'term' problem

1996-10-17 13:49:17

This is a procmail related question that I need some help on.
When I try using recipes that use the 'formail' program, I have
been getting an error due to an undefined 'term' variable.
Procmail is running on a Sun 4, using SunOS 5.5 I believe.


In this example, I was trying to use a file of subjects to
reject.  So my procmailrc file looks like this:

========================== procmailrc ==============================
PATH=$HOME/bin:$HOME/bin/sun:/usr/bin:/usr/ucb:/bin:/usr/local/bin:.
MAILDIR=$HOME/Mail    # You'd better make sure it exists
DEFAULT=mbox
VERBOSE=yes
LOGABSTRACT=all

LOGFILE=$MAILDIR/from

:0:
* ^From:.*bbousman.*
* ? formail -rtzxTo: | fgrep -s -f reject-subject
subject-reject-folder
====================================================================



The log file shows this:
============================= from =================================
procmail: Match on "^From:.*bbousman.*"
procmail: Executing " formail -rtzxTo: | fgrep -s -f reject-subject"
term: Undefined variable
procmail: [3150] Thu Oct 17 12:28:54 1996
procmail: Program failure (1) of " formail -rtzxTo: | fgrep -s -f
reject-subject"
procmail: No match on " formail -rtzxTo: | fgrep -s -f reject-subject"
procmail: Locking "mbox.lock"
procmail: Assigning "LASTFOLDER=mbox"
procmail: Opening "mbox"
procmail: Acquiring kernel-lock
procmail: Kernel-lock failed
procmail: [3150] Thu Oct 17 12:28:56 1996
procmail: Kernel-unlock failed
procmail: Unlocking "mbox.lock"
From bbousman(_at_)munin  Thu Oct 17 12:28:51 1996
 Subject: test
  Folder: mbox                                                              733
procmail: Notified comsat: 
"bbousman(_at_)12282:/disk2/people/bbousman/Mail/mbox"
====================================================================


I figure this is a system related problem but I'm not sure what to
check since I only get this problem when using procmail.

As a side note, I've also seen this recipe for message rejection and
I was wondering if this checks only the subject line or the entire
header?
  :0
  * ! ? fgrep -s -f accept
  BOUNCE-ACTION

Thanks for the help.

Brian
bbousman(_at_)sdc(_dot_)rockwell(_dot_)com

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