First, you badly hacked the original file ("commands.rc") from which
this remaining part came from; I know for sure, because I wrote the
original. [BTW, It is a common courtesy, when hacking a file, to
annotate this below or near the original author's attribution, so that
subsequent viewers of the file do not think badly or otherwise of the
original author.]
In any case, my guess is that while you tried to eliminate the command
responses which you didn't need, you also eliminated the recipes which
finally send the response to sendmail. The one which goes something
like this:
:0
! -oi -t
Second, when you post mail explaining a problem, you will obtain a
better response when you provide better detail in the explanation of the
problem. While you did send *a* procmail recipie file, you have not
provided any of the following, all of which might affect or cause the
problem:
* procmail version (do "procmail -v");
* context in which this file is included:
+ is this your .procmailrc file?
+ is it included from your .procmailrc file?
+ is MAILDIR defined correctly
+ how is MY_ADDR defined?
+ is the file "comm-reply-file.rc" in the $MAILDIR?
* any logged output from a failure case; ie: LOGFILE=Log
You should be able to fix the script now. If not, start over with
commands.rc, and do not remove the important parts. :^)
___________________________________________________________
Alan Stebbens <stebbens(_at_)sgi(_dot_)com> (415) 933-6437
Silicon Interactive Group, Silicon Graphics, Inc. (SGI)
M/S:9L991, 2011 N. Shoreline Blvd., Mountain View, CA 94043
--=====================_836253194==_
Content-Type: text/plain; charset="us-ascii"
I apologize for the size of this request, but I looked in the archives of
this list and couldn't find anything that helped me. I am trying to use
procmail to set up a _multi_ file autoresponder. After six weeks of trying
over a two and a half month period I am no closer to a solution than when I
started.
It receives the request, and sends back a header (you requested info on .
. ) and that is as far as it processes. I have tried everything including
working by moonlight, to find a solution without success.
I have attached the file up to where it is supposed to select the proper
file to return. If anyone can explain how to make it work, I would greatly
appreciate it.
--=====================_836253194==_
Content-Type: text/plain; charset="us-ascii"
Content-Disposition: attachment; filename="PMAILHEL.TXT"
# (send | get) help
# (send | get) info(rmation)?
#
# Author: Alan K. Stebbens
#
# Check for any of the commands
:0
* ? test -f commands.rc.log
{ OLDCMDLOGFILE=$LOGFILE
LOGFILE=commands.rc.log
LOGABSTRACT=all
VERBOSE=yes
}
:0
* ^Subject: *\/\
((send|get) +(help|info(rmation)?|\
procmailrc|\
(procmail|smartlist) *(- *)?info(rmation)?|\
(procmail|smartlist) *(- *)?lib(rary)?|\
emacs(-| *)setup|\
pgp *key)|\
(en|dis)able +(auto *)?ack(nowledge?ment)?s?)
* ! ^FROM_DAEMON
* $ ! ^X-Loop: $MY_ADDR
{
# We're forking at this point -- so shutup procmail
COMSAT=off
# Tell sendmail we've got control
DELIVERED=yes
# Save a copy just in case (in log mode)
:0 c:
* LOGFILE ?? commands\.rc\.log
commands.requests
# Get the trigger subject
SUBJ=$MATCH
# Get the best reply address (used for logging)
:0
* ! ^Reply-to: *\/[^ ].*
* ! ^From: *\/[^ ].*
* ! ^Sender: *\/[^ ].*
* ! ^From *\/[^ ]+
{ FROM=nobody }
:0E
{ FROM=$MATCH }
# Just in case these aren't defined
FROMSIG="${FROMSIG:-\"The Mailer-Daemon of $USER\" <$USER>}"
MY_ADDR="${MY_ADDR:-<$USER>}"
# The log file
COMMANDLOG=${COMMANDLOG:-commands.log}
# The basic processing works like this:
# Now that we've captured the important information from the
# incoming mail, we replace the headers portion with an
# autoreply header.
#
# Then, as part of recognizing the SUBJECT command, we
# replace the body portion with the response
#
# After testing for all the possible subject commands,
# we then submit the mail unless it is empty.
# Generate a reply header, and replace the headers
:0 fhw
| formail -rI"From: $FROMSIG" \
-I"Reply-To: $MY_ADDR" \
-I"Subject: Re: $SUBJ" \
-I"X-Loop: $MY_ADDR"
# Now, start a new message body
# :0 fbw
# | echo "This message was sent automatically in reponse to your recent" ;
\
# echo "mail with the subject: \"$SUBJ\"." ; \
# echo ""
# Now process each command
##### send information
:0 E
* SUBJ ?? info(rmation)?
{
# The information file with a suitable default
INFOFILE=${INFOFILE:-commands.info}
REPLYFILE=$INFOFILE
INCLUDERC=comm-reply-file.rc
}
--=====================_836253194==_
Content-Type: text/plain; charset="us-ascii"
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Walter Daniels FBN Graphics-The place where your mug says what YOU want!
Custom orders cheerfully done on quality coffee mugs, with no minimum
order.
You can order quantities of 1 to 100 for use by individuals, clubs, or prizes.
For information contact: fbngraph(_at_)indy(_dot_)net
http://www.digiserve.com/fbngraphics/
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
--=====================_836253194==_--