home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / mail / mh / 1533 < prev    next >
Encoding:
Text File  |  1993-01-22  |  2.4 KB  |  77 lines

  1. Newsgroups: comp.mail.mh
  2. Path: sparky!uunet!spool.mu.edu!news.nd.edu!mentor.cc.purdue.edu!noose.ecn.purdue.edu!ecn.purdue.edu!davy
  3. From: davy@ecn.purdue.edu (Dave Curry)
  4. Subject: Re: forw & subject lines
  5. Message-ID: <1993Jan22.135236.6391@noose.ecn.purdue.edu>
  6. Sender: news@noose.ecn.purdue.edu (USENET news)
  7. Reply-To: davy@ecn.purdue.edu
  8. Organization: Purdue University Engineering Computer Network
  9. References:  <1993Jan21.171431.19670@hemlock.cray.com>
  10. Date: Fri, 22 Jan 1993 13:52:36 GMT
  11. Lines: 64
  12.  
  13. In article <1993Jan21.171431.19670@hemlock.cray.com>, ant@palm21.cray.com (Tony Jones) writes:
  14. |> Using 'forw' is there any way to propagate the 'Subject' line of the message
  15. |> you are enclosing up to the Subject line of the message you are going to
  16. |> send ?
  17. |> 
  18. |> For example, if I receive a message with Subject line 'foobar' I would like
  19. |> to forward this out and have the Subject line of the message I send out 
  20. |> become 'foobar (fwd)'
  21.  
  22. You can do it this way:
  23.  
  24. 1. In your personal bin or whatever, symbolically link "forw" to "repl".
  25.  
  26. 2. Make a file in your "Mail" directory called "components.forw" or some
  27.    such, containing:
  28.  
  29.     To: \n\
  30.     Cc: \n\
  31.     %<{subject}Subject: [%(lit)%(pers{from})%<(nonnull)%|%{from}%>: %{subject}]\n%|Subject: \n%>\
  32.     Fcc: outbox\n\
  33.     Bcc: \n\
  34.     --------
  35.  
  36.    (The "Subject" line above should be all one line; don't let your newsreader
  37.    break it.)
  38.  
  39. 3. Make another file in your "Mail" directory called "mhl.forw" or some
  40.    such, containing:
  41.  
  42.     width=80,overflowtext=,overflowoffset=0
  43.     leftadjust,compress,compwidth=9
  44.     :
  45.     :------- Forwarded Message
  46.     :
  47.     From:
  48.     To:
  49.     Cc:
  50.     Date:formatfield="%<(nodate{text})%{text}%|%(tws{text})%>"
  51.     Subject:
  52.     :
  53.     body:nocomponent,overflowoffset=0,noleftadjust,nocompress
  54.     :
  55.     :------- End of Forwarded Message
  56.  
  57.    You need this now to add the "Forwarded Message" lines around the original,
  58.    since you're not using the real "forw" anymore.
  59.  
  60. 4. Edit your .mh_profile and add:
  61.  
  62.     forw: -filter mhl.forw -form components.forw
  63.  
  64. The reason you have to do it this way is that "repl" is the only MH program
  65. that lets you grab fields out of the replied-to (forwarded) message and put
  66. them in the new message's headers.
  67.  
  68. --Dave
  69.  
  70. P.S. - The above components file will put the person's name and subject in
  71.        the new subject line.  For example, if I ran it on your original
  72.        message, I'd get:
  73.  
  74.         Subject: [Tony Jones: forw & subject lines]
  75.  
  76.        Of course, you can change the line to do "foobar (fwd)" like you want.
  77.