home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / mail / elm / 3694 < prev    next >
Encoding:
Text File  |  1992-12-12  |  2.4 KB  |  52 lines

  1. Newsgroups: comp.mail.elm
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!usenet.ins.cwru.edu!agate!iat.holonet.net!dattier
  3. From: dattier@orac.holonet.net (DWT)
  4. Subject: Re: edit buffer lost at disconnection
  5. Message-ID: <Bz5u6K.7En@iat.holonet.net>
  6. Sender: usenet@iat.holonet.net (USENET News System)
  7. Nntp-Posting-Host: holonet.holonet.net
  8. Organization: Information Access Technologies, Inc. of Berkeley, CA
  9. References: <Bz28FM.Mq6@ddsw1.mcs.com> <1g8u2kINNsvs@dsinc.dsi.com>
  10. Date: Sat, 12 Dec 1992 19:01:31 GMT
  11. Lines: 39
  12.  
  13. In article <1g8u2kINNsvs@dsinc.dsi.com> syd@dsi.com (Syd Weinstein) replied
  14. to my question from article <Bz28FM.Mq6@ddsw1.mcs.com>:
  15.  
  16. T> HOW can I keep Elm from removing $tmpdir/snd.$$ upon hangups?  I think Elm
  17. T> should remove that file only when the user exits the editor (and the header
  18. T> editing screen) and issues a s)end or f)orget command.
  19.  
  20. W> The code that does this is in src/util.c, in the leave function.
  21. W> You need to delete or comment out the lines that 'delete' the edit buffer.
  22.  
  23. Sorry for not making this clear: I need a user-level solution, not an admin-
  24. istrator-level solution.  (1) It requires me to importune someone else to
  25. implement it.  (2) It would get forced on all users.  [I'm the only user with
  26. the problem, and recompiling with those lines of code commented out would
  27. require all users to rm their $tmpdir/snd.$$ files by hand.  I'd put up with
  28. that as the cost of the cure, but why should everyone else on ddsw1?]
  29.  
  30. Les Mikesell emailed me a suggestion that I change $editor in my .elm/elmrc
  31. to a script like this:
  32.  
  33. ln $1 safedirectory
  34. exec vi $1
  35.  
  36. and it's working very well.  In my logout routines (called up only when I
  37. sign out voluntarily and not executed when I fall off line) I simply added
  38. rm -f safedirectory/snd.*
  39.  
  40. The only change I've made to Les's suggestion is to redirect ln's stderr to
  41. /dev/null because of the complaint it makes because the two names are already
  42. linked when I re-enter the editor to make more changes before sending a
  43. letter.  (Note that in my elmrc tmpdir is set to a directory under my $HOME,
  44. so finding another directory on the same filesystem to use as the safe
  45. directory was not an obstacle.)
  46.  
  47. Disclaimer: I'm having the hangup problem on ddsw1, where I posted the
  48. original question, not on HoloNet, where I am posting this follow-up.
  49.  
  50. David W. Tamkin   P. O. Box 59297   Northtown Station, Illinois  60659-0297
  51. dattier@{holonet.net|gagme.chi.il.us}  CIS: 73720,1570   MCI Mail: 426-1818
  52.