mutt vacation-list issue



Mon Mar 26 13:02:04 EDT 2007

SCO 5.0.6
mutt ver ??

I have an employee 'dlawson' out on maturnity leave.
I added /usr/dlawson/.deliver (atached below)
'/usr/person/vacation-list' gets appended with any incoming email
so that sender receives a message from 'dlawson' that they are
out for vaca|maturnity|sick|etc. ONLY ONE TIME.

Problem is that 'vacation-list' is creating incorrect outgoing
email address, so nobody outside 'cactus.com' receives email
notification that user 'dlawson' is out. Email address below
are examples only to protect the senders ID.

Xmail2!myactv.net!wayscomm@xxxxxxxxxxx
Xjeff@xxxxxxxxxxx <=== This was OK
XMAILER-DAEMON@xxxxxxxxxxx
Xmail2!mirenvelope.com!pach@xxxxxxxxxxx
Xmail2!club.co.uk!eister@xxxxxxxxxxx
Xroot@xxxxxxxxxxx <=== This was OK
Xmail2!ds.localdomain!root@xxxxxxxxxxx
Xmail2!wanadoo.fr!johnnyl@xxxxxxxxxxx
Xmail2!domain.com!do-not-reply@xxxxxxxxxxx
Xmail2!saka.com!Jimmy.Bath@xxxxxxxxxxx
Xmail2!ecux.net!eman@xxxxxxxxxxx
Xmail2!northrupp.com!debrap@xxxxxxxxxxx
----------------- clipped -------------

Where would I start looking to track down this problem to fix it?
Solution is that the sender receives ONE email that dlawson is out on vaca.

TIA!
- Jeff H


##########################################################################
#!/bin/ksh
# @(#) .vacation
# This script creates a fresh file '$HOME/.deliver
# which is simply a copy of THIS file with a return date.
#
# 1.5 JPRadley 21Dec02
#
# See comments at end of this script.
# /usr/local/bin/vac
# /usr/local/lib/deliver.vacation ==> $HOME/.deliver When Auto-Reply ON
# rm -f $HOME/.deliver When Auto-Reply OFF
#
### Content-Disposition: attachment; filename="deliver.vacation"
# A user delivery file for when you're away.
PATH=/usr/local/bin:/bin:/usr/bin
LOCALDOM="cactus.com"
PLACE="Lone Star Software Corp"
SP=`header -f X-Spam-Flag $HEADER`
export PATH LOCALDOM PLACE SP

echo "$1" # First of all, keep the mail!

case "$SP" in
YES) exit ;; # replying to what is probably SPAM is a waste of time.
esac

# Do nothing more unless the message was directly addressed to you.
header -n -f To -f Cc -f Apparently-To $HEADER | \
fgrep -iq $1@$LOCALDOM || exit 0

# Don't waste any energy on daemons
case $SENDER in
uucp@$LOCALDOM|cron@$LOCALDOM|*daemon@$LOCALDOM|lp@$LOCALDOM) exit 0 ;;
esac

# The ALREADY file remembers to whom you've already mailed vacation messages.
ALREADY="vacation-list"

if fgrep X${SENDER}X $ALREADY >/dev/null 2>/dev/null
then
exit 0 # We already notified this person; do nothing more
fi

# Remember this person
echo X${SENDER}X >> $ALREADY

# Send the vacation message
SUBJECT=`header -f subject $HEADER`
mutt -s "I'm away from $PLACE" $SENDER <<!EOF!
1. Your message to me on the subject

"$SUBJECT"

has been delivered.

2. Since I'm away on maturnity leave, I have not read your message.

3. I will be returning to $PLACE
==> Monday May 7, 2007 <==

4. This is the only such notice you will receive.
If you need immediate assistance, call 301-829-1622

Thank You.

!EOF!

exit 0
###--------------------------------------------------------------------------
### EOF - .vacation
###--------------------------------------------------------------------------


---- END ----
.



Relevant Pages

  • Re: mutt vacation-list issue
    ... | I have an employee 'dlawson' out on maturnity leave. ... | Solution is that the sender receives ONE email that dlawson is out on vaca. ... # The ALREADY file remembers to whom you've already mailed vacation messages. ...
    (comp.unix.sco.misc)
  • Re: mutt vacation-list issue
    ... | | I have an employee 'dlawson' out on maturnity leave. ... | | Solution is that the sender receives ONE email that dlawson is out on vaca. ... | # The ALREADY file remembers to whom you've already mailed vacation messages. ...
    (comp.unix.sco.misc)
  • Re: mutt vacation-list issue
    ... | | | Solution is that the sender receives ONE email that dlawson is out on vaca. ... # The ALREADY file remembers to whom you've already mailed vacation messages. ...
    (comp.unix.sco.misc)