SUMMARY: vacation doesn't like dots in alias values.

Alan Thew (Alan.Thew@liverpool.ac.uk)
Sat, 31 Jan 1998 23:19:52 +0000 (GMT)

On Thu, 29 Jan 1998, Alan Thew wrote:

> We make quite extensive use of firstname.lastname addresses here and one
> of the things that fails to work is vacation since the -a option appears
> to not expect dots/periods in the alias.
>
> Am I wrong? If I'm correct, what is the quickest way of implementing
> an alternative such as procmail? Does anyone have a better vacation
> procmailrc than the one in the current examples?
>
Thanks to
Daren Eason <easond@buzzeo.com>
Jochen Bern <bern@TI.Uni-Trier.DE>
Dan Pritts <danno@ans.net>
chris_knox@hypercom.com

who replied very quickly. I have considered procmail but have found that
the latest BSD vacation (which requires Berkeley's db database) is much
better here although for some dumb reason is case dependant (Sun's code
does not have this failing).

From: Daren Eason <easond@buzzeo.com>

Should work fine if you add a \ before the . (first\.last)

From: Jochen Bern <bern@TI.Uni-Trier.DE>

Off the Top of my Head: How about having .forward not pipe Mails straight
into vacation but rather into something like:

sed -e '1,/^$/s/[Jj]oe.[Ss]ixpack@/jsixpack@/g' | vacation ...

(I *think* you need to wrap it up into a Shell Command a la csh -c "a ; b"
to make that work)?

From: Dan Pritts <danno@ans.net>

here is what i use. It *doesn't* do any checking to see who the
to: is, so you'd have to add that. shouldn't be too tough, i wouldn't
think.

SENDMAIL=/usr/lib/sendmail
FILE=$HOME/.procmail-vacation.msg
LOGFILE=$MAILDIR/.logfile
LOCKFILE=$HOME/.lockmail

# weed out duplicate messages, first thing
:0 Wh: msgid.lock
| formail -D 8192 msgid.cache

#:0 Whc: vacation.lock
#* !^FROM_DAEMON
#* !^X-Loop: danno-vacation@st1100.aa.ans.net
#{
# :0 Wh
# | formail -rD 8192 vacation.cache
# :0 efhw
# | formail -r -A"Precedence: bulk" -A"X-Loop: danno-vacation@st1100.aa.ans.net
" \
# -A"From: Dan Pritts <danno@st1100.aa.ans.net>"
# :0 ah
# | cat - $FILE | $SENDMAIL -oi -t
#}

From: chris_knox@hypercom.com

There's an example of a vacation replacement in the procmailrc man
page. Procmail uses an extended regular expreassion, but it is terse
with very odd syntax. User verbose output and log it. Piping a mail
file to procmail is the best debug tool. Great tool, but have some
patience.