Hey guys,
I've got a rather simple procmail recipe file who's sole purpose it to save
the incoming message to a specific folder and then pass it to a shell
script. 99% of this time my logs look great, but every so often I'll
received the following error:
**********************************************
From informix(_at_)redison1(_dot_)ic(_dot_)ncs(_dot_)com Fri Nov 8 00:03:27
2002
Subject: Informix Full Backups
Folder: /home/procmail/Mail/MailProcessor.sh /home/procmail/Mail/inco
2043
stty: tcgetattr: Not a typewriter
procmail: Error while writing to "/home/procmail/Mail/MailProcessor.sh"
**********************************************
I can live with the stty error, it's no big deal... The last line kinda
bothers me though.
The really weird part, however, is that according to the logs that my
MailProcessor.sh script puts out, it DID receive the message, and DID
process it properly, exiting with code 0.
Obviously, if it's working fine, it's not a big deal, but I'm still kind of
curious as to what's causing procmail to report this error if everything
appears to have ran fine.
My procmailrc file is:
**********************************************
# Modified 11/06/2002 (MAA)
LOGFILE="$HOME/Mail/logs/"`date +"%y%m%d"`"_procmail.log"
DEFAULT="$HOME/Mail/incoming/"`date +"%m%d%y"`
PROCESSOR="$HOME/Mail/MailProcessor.sh"
# Make sure the default directory exists, ignore any errors
# Use a custom lock here to be safe, though it's probably unnecessary
:0ci:mkdir.lock
| mkdir -m 755 -p $DEFAULT
# Send the message to the default directory
# Use a custom lock here to be safe, though it's probably unnecessary
:0c:procmail.lock $DEFAULT
# Capture the full path to the saved message MESSAGEFILE=$LASTFOLDER
# Pass the message path to the mail processor
# The lock here is required, so as to prevent multiple calls to the
processor # at the same time. That isn't really a problem, but it makes the
log files messy :0:MailProcessor.lock
| $PROCESSOR $MESSAGEFILE
**********************************************
Also, procmail is still kinda confusing to me (which is why I've got that
shell script to do the processing) so please feel free to point out any
obvious problems with the rc.
Thanks!
Matt Anderson
Data Services
(319) 354-9200 ext. 4624
****************************************************************************
This email may contain confidential material.
If you were not an intended recipient,
Please notify the sender and delete all copies.
We may monitor email to and from our network.
****************************************************************************
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail