procmail
[Top] [All Lists]

Re: Help needed with auto-reply

1996-01-26 08:33:27

Pankaj started with this:
 
               :0
               * !^From +YOUR_USERNAME
               * !^Subject:.*Re:
               * !^FROM_DAEMON
               * ^Subject:.*retrieve
               | (formail -r ; cat info_file) | $SENDMAIL -oi -t
 
 But then he wanted to add more:

I'd like to modify the script so that it saves each request in a folder 
called "IN.requests", and then auto-replies to the sender. That way, I'd 
have a record of whom I sent the auto-reply to.

So you want to make this delivering recipe not terminate.  sounds like a
use for the `c' flag.  Then you want to check to see if it matched the
previous one.  Sounds like the `a' flag.  So here we go:

:0 c
... Your recipe

  :0 a:
  IN.requests

Soren

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