🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.mail.mh
Article #1354

Re: forw & subject lines

#1354
From: Dave Curry
Date: Fri, 22 Jan 1993 13:52
64 lines
2559 bytes
In article <1993Jan21.171431.19670@hemlock.cray.com>, ant@palm21.cray.com (Tony Jones) writes:
|> Using 'forw' is there any way to propagate the 'Subject' line of the message
|> you are enclosing up to the Subject line of the message you are going to
|> send ?
|> 
|> For example, if I receive a message with Subject line 'foobar' I would like
|> to forward this out and have the Subject line of the message I send out 
|> become 'foobar (fwd)'

You can do it this way:

1. In your personal bin or whatever, symbolically link "forw" to "repl".

2. Make a file in your "Mail" directory called "components.forw" or some
   such, containing:

	To: \n\
	Cc: \n\
	%<{subject}Subject: [%(lit)%(pers{from})%<(nonnull)%|%{from}%>: %{subject}]\n%|Subject: \n%>\
	Fcc: outbox\n\
	Bcc: \n\
	--------

   (The "Subject" line above should be all one line; don't let your newsreader
   break it.)

3. Make another file in your "Mail" directory called "mhl.forw" or some
   such, containing:

	width=80,overflowtext=,overflowoffset=0
	leftadjust,compress,compwidth=9
	:
	:------- Forwarded Message
	:
	From:
	To:
	Cc:
	Date:formatfield="%<(nodate{text})%{text}%|%(tws{text})%>"
	Subject:
	:
	body:nocomponent,overflowoffset=0,noleftadjust,nocompress
	:
	:------- End of Forwarded Message

   You need this now to add the "Forwarded Message" lines around the original,
   since you're not using the real "forw" anymore.

4. Edit your .mh_profile and add:

	forw: -filter mhl.forw -form components.forw

The reason you have to do it this way is that "repl" is the only MH program
that lets you grab fields out of the replied-to (forwarded) message and put
them in the new message's headers.

--Dave

P.S. - The above components file will put the person's name and subject in
       the new subject line.  For example, if I ran it on your original
       message, I'd get:

		Subject: [Tony Jones: forw & subject lines]

       Of course, you can change the line to do "foobar (fwd)" like you want.
Technical Details
Message-ID: <1993Jan22.135236.6391@noose.ecn.purdue.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!spool.mu.edu!news.nd.edu!mentor.cc.purdue.edu!noose.ecn.purdue.edu!ecn.purdue.edu!davy
References: <1993Jan21.171431.19670@hemlock.cray.com>

Show Full Headers
Complete Article Headers
Newsgroups: comp.mail.mh
Path: arc1-ca.pugleaf.net!sparky!uunet!spool.mu.edu!news.nd.edu!mentor.cc.purdue.edu!noose.ecn.purdue.edu!ecn.purdue.edu!davy
From: davy@ecn.purdue.edu (Dave Curry)
Subject: Re: forw & subject lines
Message-ID: <1993Jan22.135236.6391@noose.ecn.purdue.edu>
Sender: news@noose.ecn.purdue.edu (USENET news)
Reply-To: davy@ecn.purdue.edu
Organization: Purdue University Engineering Computer Network
References:  <1993Jan21.171431.19670@hemlock.cray.com>
Date: Fri, 22 Jan 1993 13:52:36 GMT
Lines: 64