[ LUGOS ] Avtomatski odgovor
Iztok Umek
iztok na si-con.com
Pon Jul 17 14:06:44 CEST 2000
Quoting Jure Krasovic <jure.krasovic na rcc-irc.si>:
> Zivijo!
>
> Zanima me kako naj naredim, da se bo za vsak mail, ki ga bo nekdo poslal
> na moj naslov odgovor sam odposlal v smislu sem na dopustu ...
> Uporablajm Sendmail.
Ce uporabljas skupaj s sendmailom tudi procmail, potem uporabi .procimail
datoteko (man procmailex, tam je lep primer). Obstaja kup variant, med drugim
tudi vacation (programcic).
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 na 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 na own.mail.address" ; \
echo "I received your mail,"; \
echo "but I won't be back until Monday."; \
echo "-- "; cat $HOME/.signature \
) | $SENDMAIL -oi -t
LP,
Iztok
-------------------------------------------------
This mail sent through IMP: www.dergan.si
Dodatne informacije o seznamu Starilist