home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1994 March / Source_Code_CD-ROM_Walnut_Creek_March_1994.iso / unix_c / mail / mhrntrfc.sh < prev    next >
Encoding:
Text File  |  1989-03-21  |  1.4 KB  |  46 lines

  1. 18-Jan-86 18:11:47-MST,1404;000000000001
  2. Return-Path: <unix-sources-request@BRL.ARPA>
  3. Received: from BRL-TGR.ARPA by SIMTEL20.ARPA with TCP; Sat 18 Jan 86 18:11:39-MST
  4. Received: from usenet by TGR.BRL.ARPA id a021441; 18 Jan 86 19:46 EST
  5. From: Robert Virding <robert@erix.uucp>
  6. Newsgroups: net.sources
  7. Subject: Re: Using MH as the mail interface to rn
  8. Message-ID: <1039@erix.UUCP>
  9. Date: 17 Jan 86 17:15:06 GMT
  10. To:       unix-sources@BRL-TGR.ARPA
  11.  
  12. There's an easier way to do it which also allows using draft folders
  13. in MH.  In .login (or whatever, .rninit is also a good place):
  14.  
  15. setenv EMAILPOSTER "~/bin/mh comp -form %h"
  16. setenv EMAILHEADER \
  17. 'To: %f\\n\
  18. Cc: %L\\n\
  19. Subject: Re: %S\\n\
  20. In-Reply-To: Your message of %[date]\\n\
  21.              %i\\n\
  22. %(%[references]!=^\$?References\\: %[references]\\n)\
  23. Newsgroups: %n\\n-------\\n'
  24.  
  25. ~/bin/mh is defined as:
  26.  
  27. #! /bin/sh
  28. #    A small shell script to run the MH-system.
  29. #    Includes the mh command directory in the PATH
  30. #    If a (mh) command is given this is run instead.
  31. #
  32. export PATH; PATH=/usr/new/mh:$PATH    # the mh-system commands
  33.  
  34. if [ $# = 0 ]
  35. then
  36.     export PS1; PS1="MH> "        # an informative prompt used by sh
  37.     exec $SHELL            # use the default shell
  38. else
  39.     exec sh -c "$*"            # run through shell
  40. fi
  41.  
  42. This file is fine for running a subshell for MH as well.
  43.  
  44.             Robert Virding  @ L M Ericsson, Stockholm
  45.             UUCP: {decvax,philabs,seismo}!mcvax!enea!erix!robert
  46.