[ILUG] Re: "out of office" in sendmail?

John Ronan j0n at tssg.wit.ie
Fri Nov 3 10:37:54 GMT 2000


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

man vacation
[snip]


No message is sent if the `To:' or the `Cc:' line does not
       list the user to whom the original message was sent or one
       of a number of aliases for them, if the initial From  line
       includes  one  of the strings -request@, postmaster, uucp,
       mailer-daemon, mailer or -relay or if a `Precedence: bulk'
       or  `Precedence:  junk'  or  `Precedence:  list'  line  is
       included in the header. The search for special senders  is
       made case-independant.
[snip]

man procmailex
[snip]
 SHELL=/bin/sh    # for other shells, this might need adjustment

              :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.mail.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.mail.address" ; \
                   echo "I received your mail,"; \
                   echo "but I won't be back until Monday."; \
                   echo "-- "; cat $HOME/.signature \
                  ) | $SENDMAIL -oi -t
[snip]



On 03-Nov-00 Paul Scollon wrote:
> Yeah, I considered that. How do I stop it replying to mailing list mails? Or
> is the answer in the man and I'm just being impatient?

- -- 
John Ronan <j0n at tssg.wit.ie>, +353-51-302411
Telecommunications Software Systems Group - WIT, http://www.tssg.org

Things You Don't Want To Hear When Lying On The Operating Table   
"Ya know, there's big money in kidneys.  Hell, the guy's got two of 
'em." 

=====================================================================
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iEYEARECAAYFAjoClNAACgkQxRfcCNkPK4ulcQCgxoknEYydraK0mnX1kfi4Hvpn
5v8An0xo1yGAq/Xecy7jKoLAHVJJQPEL
=CTqQ
-----END PGP SIGNATURE-----




More information about the ILUG mailing list