procmail
[Top] [All Lists]

Configuring Vacation Message for One Address

2005-08-20 09:21:09
I am really new to using procmail. Presently, I have several email
addresses that I use for various purposes. I wanted to use the following
recipe that I copied from the 'man procmailex' file. Replacing the
"your(_at_)own(_dot_)mail(_dot_)address" works fine; however, the filter works 
on every
email address I have. I want it to responde to only one particular
address. If I change the

* $^:.*\$LOGNAME\> line to

* $^To:me(_at_)someplace(_dot_)net\<\$LOGNAME\>

the recipe no longer works. The log file claims that there is no match.

I cannot seem to get this to work correctly. Obviously, I am doing
something really stupid, but I have a very limited knowledge of regular
expressions.

I have this rule placed in the "/usr/local/etc/procmailrc" file on a
FreeBSD system. I am the only user of this computer, and therefore do
not have a separate directory for each email address that I use.

      SHELL=/bin/sh

     :0 Whc: vacation.lock
      # 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: your(_at_)own(_dot_)mail(_dot_)address
     | formail -rD 8192 vacation.cache

       :0 ehc         # if the name was not in the cache
       | (formail -rI"Precedence: junk" \
            -A"X-Loop: your(_at_)own(_dot_)mail(_dot_)address" ; \
          echo "I received your mail,"; \
          echo "but I won't be back until Monday."; \
          echo "-- "; cat $HOME/.signature \
         ) | $SENDMAIL -oi -t

-- 
Gerard
gerard(_at_)seibercom(_dot_)net

____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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