procmail
[Top] [All Lists]

Problem recipes

1996-03-03 08:51:38

        I'm having a some trouble with recipe that don't work the way 
        I expect them to.  Can somebody/anybody give me 
        a reason as to what needs to be changed, and why.

#**********
#
# I'm trying to set up my mailer so it autoreplies to any messages
# containing a certain keyword in the subject line. The auto-reply reads in
# a file and sends it to whoever sent me the message with the keyword.
#
    :0: h
    * !^From +YOUR_USERNAME
    * !^Subject:.*Re:
    * !^FROM_DAEMON
    * ^Subject:.*hwafaq
    | (formail -r ; ~ftp/pub/gr/graphology/hwa.faq ) | $SENDMAIL -oi -t
#
#
#*
**  Let's see if that works, or not

        This recipe returns a blank message, not the file it is 
        supposed to.


#**********
#       To get rid of error messages that tell me mail wasn't delivered
#       
        LOG=dupNull$NL
        :13W:
        ^From:Mailer-daemon(_at_)aol(_dot_)com
        ^From(_dot_)Mailer-daemon(_at_)aol(_dot_)com
        ^From(_dot_)POSTMASTER(_at_)compuserve(_dot_)com
        ^From:POSTMASTER(_at_)compuserve(_dot_)com
        ^From(_dot_)Mailer-daemon(_at_)aol(_dot_)com
        ^From(_dot_)MAILER-DAEMON(_at_)prodigy(_dot_)com 
        ^Subject:Returned Mail: Undeliverable
        ^Subject:Returned Mail: undeliverable message 
        ^Subject:Returned mail: User unknown
        ^Subject:inactive user
        ^Subject:Returned Mail: Cannot send message for 5 days
        ^Subject:Returned Mail: Cannot send message for 3 days
        ^Subject:Undeliverable message
        | GARBAGE

#       Hoping this works properly
#
#**********

        GARBAGE is defined as /dev/nul earlier in .procmailrc

        These messages get past this recipe.  :-(


        xan

        jonathon
        grafolog(_at_)netcom(_dot_)com



**********************************************************************
*                                                                    *
*       Opinions expressed don't necessarily reflect my own views.   *
*                                                                    *
*       There is no way that they can be construed to represent      *
*       any organization's views.                                    *
*                                                                    *
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
*       ftp://ftp.netcom.com/pub/gr/graphology/home.html             *
*                                                                    *
***********************************************************************

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