procmail
[Top] [All Lists]

/dev/tty: Device not configured

2005-02-25 14:38:04
I'm using formail, piping the output through fgrep, sed, and/or awk to scan
mail headers and match them against whitelist and blacklist files.

I get a lot of
    /dev/tty: Device not configured
messages in my log whenever I do the pipe.

How can I make these go away?

.procmailrc
GREP="egrep -iqsf"            # ignore case, quiet, suppress errors,
FGREP="fgrep -if"             # ignore case (whole words? -w)
WHITELIST=$PMDIR/whitelist          # people
WHITEMLISTS=$PMDIR/whitemlists      # mailing lists
WHITEDOMAINS=$PMDIR/whitedomains    # domains
OURDOMAINS=/local/docs/domains      # cfcl "internal" domains
BLACKLIST=$PMDIR/blacklist          # people
BLACKDOMAINS=$PMDIR/blackdomains    # domains
BLACKSUBJECTS=$PMDIR/blacksubjects  # subject lines

SUBJECT="`formail -zxSubject:`"

SENTFROM="`formail -zxFrom: -zxReply-To:`"
SENTTO="`formail -zxTo: -zxCc:`"
FROMDOMAIN="`formail -zxFrom: | sed 's/^.*@// ; s/>//'`"
REPLYDOMAIN="`formail -zxReply-To: | sed 's/^.*@// ; s/>//'`"
RCVDOMAIN="`formail -xReceived: | awk '/^ +from ([^ ]+)/ { print $2}'`"


...
procmail: Assigning "BLACKSUBJECTS=/home/me/Mail/blacksubjects"
procmail: Executing "formail,-zxSubject:"
procmail: Assigning "SUBJECT=Credit/Debit card update"
procmail: Executing "formail,-zxFrom:,-zxReply-To:"
procmail: Assigning "SENTTO=foo(_at_)home(_dot_)com"
procmail: Executing "formail -zxFrom: | sed 's/^.*@// ; s/>//'"
/dev/tty: Device not configured.
procmail: Assigning "FROMDOMAIN=ebay.com"
procmail: Executing "formail -zxReply-To: | sed 's/^.*@// ; s/>//'"
/dev/tty: Device not configured.
procmail: Assigning "REPLYDOMAIN=ebay.com"
procmail: Executing "formail -xReceived: | awk '/^ +from ([^ ]+)/ { print
$2}'"
/dev/tty: Device not configured.
procmail: Assigning "BLACKLIST=/home/me/Mail/blacklist"
procmail: Executing " (echo ${SENTFROM} | fgrep -if ${BLACKLIST})"
/dev/tty: Device not configured.

-- 
Vicki Brown          ZZZ
Journeyman Sourceror:  zz  |\     _,,,---,,_     Code, Docs, Process,
Scripts & Philtres      zz /,`.-'`'    -.  ;-;;,_   Perl, WWW, Mac OS X
http://cfcl.com/vlb       |,4-  ) )-,_. ,\ ( `'-'   SF Bay Area, CA  USA
_______________________  '---''(_/--'  `-'\_)  ___________________________

____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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