home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!munnari.oz.au!yoyo.aarnet.edu.au!dstos3.dsto.gov.au!ewd!michael
- From: michael@ewd.dsto.gov.au (Michael Balin)
- Newsgroups: comp.sys.hp
- Subject: Fix to stop mail loss using elm from VUE.
- Keywords: elm
- Message-ID: <1992Sep14.101136.164514@dstos3.dsto.gov.au>
- Date: 14 Sep 92 16:11:34 GMT
- Sender: michael@ewd (Michael Balin)
- Followup-To: comp.sys.hp
- Organization: Defence Science and Technology Organisation, Salisbury, South Australia
- Lines: 41
- Nntp-Posting-Host: oberon.dsto.gov.au
-
- The problem is caused when elm is invoked under VUE. When mailing or
- forwarding a message (but strangely, not when bouncing one) elm causes
- sendmail processes to be spawned, but does not wait until they have completed
- before signalling "Mail sent!" (in its insufferably cheerful manner.)
- If one quits elm quickly enough, the terminal window closes and all processes
- linked to that tty are killed - in the case of any unfinished sendmails,
- before they've finished sending the mail.
-
- I can't say as yet whether the publically available version of elm will prevent
- the problem or not. If it doesn't, or if there are reasons why you don't want to
- install it, this replacement of the VUE action which calls elm should avoid the
- problem. It waits for the sendmail processes to complete before allowing the
- terminal opened by VUE to close.
-
-
- In /usr/local/lib/X11/vue/types/vue.ad:
- changed
- ELM * ${ACTION_L} ${ACTION_S} COMMAND TERMINAL %LocalHost% \
- /usr/bin/elm
- to
- ELM * ${ACTION_L} ${ACTION_S} COMMAND TERMINAL %LocalHost% \
- /usr/local/bin/scripts/elm-safe
-
- Created /usr/local/bin/scripts/elm-safe:
- #!/bin/csh -f
- set tty=`/bin/tty`
- set tty=$tty:t
- /usr/bin/elm
- while(`ps -ef | grep $tty | grep mail | grep -v grep | wc -w`)
- echo "Waiting for sendmail to finish..."
- sleep 1
- end
-
-
- Not too elegant, but it works. :-)
-
- Michael.
-
- --
- Michael Balin "I never carry weapons. If people see you mean them no
- michael@ewd.dsto.gov.au harm, they never hurt you. Nine times out of ten..."
-