procmail
[Top] [All Lists]

Re: ackmail.rc not acking correctly?

1999-12-01 12:56:10
At 04:38 PM 12/1/99 +0200, era eriksson wrote:
 > INCLUDERC=ackmail.rc
 > Now, as I said above, I only want to ack *some* messages based upon
 > who they are sent to. For example, if the message is sent to (any
 > address)@mediaone.net, I don't want the message to be acked at all.
 > If the message is sent to (any address)@rr.com or (any
 > address)@(any region).rr.com, then I want the ack to go out.

You could of course say something like

    :0
    * ! ^TO(_at_)mediaone(_dot_)net
    { INCLUDERC=ackmail.rc }

This worked wonderfully, btw. :)


 > Lastly, even if I do get it set up, I keep getting errors in the
 > log file that indicate that procmail can't find 'cat' or 'fgrep'. I
 > think that may be something with my path statement in my
 > .procmailrc, but I'm lost there as well.

Me too. Apart from the superfluous directories, your PATH looks fine.
Can you find one of the offending recipes and put something like this
just before it?

    LOG="Hi, it's me, I'm back. My PATH is now $PATH
"

I figured out where the issue was.

In the ackmail.rc:

    # Replace the body with the ack message
    :0 fbw
    | cat $ACKFILE

I had to add a "-" (dash) either after or before the $ACKFILE.

I decided to add it afterwards, which appended the original message to the autoresponse. I don't think that's a bad thing for an abuse desk to do.

I also changed:

    # Get the subject
    :0 ch
    SUBJ=| formail -zX'Subject:' | sed -e 's/["~]//g' -e 's/^ *[Rr]e: *//g'
    SUBJ="${SUBJ:-'(no subject)'}"

and just made SUBJ a variable with:

    SUBJ=`formail -xSubject:`

Thanks for the assistance, folks :)

Mark



   W. Mark Herrick, Jr. <markh(_at_)va(_dot_)rr(_dot_)com>          _.._        
_.._
       Senior Security Administrator             ,','"_:./\/\,'_ `.`.
       Team Lead - Usenet Operations            /_:--:_ ( oo ) _:--:_\
    Road Runner Security - 703.345.2477        /'      `'`vv'`'      `\
<abuse(_at_)rr(_dot_)com><security(_at_)rr(_dot_)com><fraud(_at_)rr(_dot_)com>

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