procmail
[Top] [All Lists]

.forward does call autoreply.proc but no message gets sent

2002-03-01 06:27:10
Hi

RH6.2
procmail 3.21
sendmail 8.10.2

.forward contains

# NetStructure AutoReply
"| exec /usr/bin/procmail /usr/ins/intel/gui/bin/autoreply.proc #
obantec-dial"

autoreply.proc contains ( and .vacation exist in user $HOME dir)

######################################################################
# global autoreply procmail script
######################################################################

SHELL=/bin/sh    # for other shells, this might need adjustment
USERNAME=`awk -F : "/^$LOGNAME:/{print \\$5}" </etc/passwd`
GROUP=`groups $LOGNAME | awk "{print \\$NF}"`
DOMAIN=`ls -o -I domain* /home/domain | grep $GROUP |awk "{print
\\$(NF-2)}"`

:0 Whc: $HOME/vacation.lock

#Check if VACATION file is found in the user's home directory
* ? test -f $HOME/.vacation

# Perform a quick check to see if the mail was addressed to us
* $^To:.*$LOGNAME

# Don't reply to daemons and mailinglists
* !^FROM_DAEMON

# Mail loops are evil
* !^X-Loop: $LOGNAME

#The following part stores user name in cache which already received the
autoreply
#Hence they will not receive autoreply again
| formail -rD 8192 $HOME/.vacation.cache
:0 ehc        # if the name was not in the cache

| (formail -rI"Precedence: vacation autoreply" \
  -A"X-Loop: $LOGNAME" \
  -I"From: $USERNAME <$LOGNAME(_at_)$DOMAIN>" ;\
  echo "This mail is generated using the AUTOREPLY mechanism :"; \   echo ;
echo ;\
  cat $HOME/.vacation; \
) | /usr/sbin/sendmail -oi -t

Any ideas

if .forward is used as a simple forward it fine.

Mark
--
Obantec Support
www.obantec.net
WebHosting and Domains
Nominet UK Tag Holder

_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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