🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

3 total messages Started by Tony Jones Thu, 21 Jan 1993 23:14
forw & subject lines
#1351
Author: Tony Jones
Date: Thu, 21 Jan 1993 23:14
18 lines
1068 bytes
I posted this same question a few months ago and never got an answer, so
I'll try again now, hopefully wording it a little better.

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)'

anyone have any ideas as to if this is possible ? and if so, how.

tony
--
Tony Jones (ant@cray.com, ..!uunet!cray!ant)
CMCS Codegeneration Group, Software Division
Cray Research Inc, 655F Lone Oak Drive, Eagan, MN 55121
Re: forw & subject lines
#1354
Author: 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.
Re: forw & subject lines
#1362
Author: Sjoerd Mullender
Date: Fri, 22 Jan 1993 23:03
28 lines
1534 bytes
davy@ecn.purdue.edu (Dave Curry) writes:

>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:

[ Good explanation of how to do this with repl. ]

The main problem with this technique is that repl can't do
"dashmunging".  This is necessary if you want the recipient to be able
to use burst to extract the original message and the original contains
lines that start with dashes.  Also, if you forward a forwarded message,
the resulting message becomes completely unparseable by burst.

I wish there were a good way of combining the features of forw and
repl.
-- 
Sjoerd Mullender
CWI, dept. CST, Kruislaan 413, 1098 SJ Amsterdam, Netherlands
email: sjoerd@cwi.nl			fax:   +31 20 592 4199
phone: +31 20 592 4127			telex: 12571 mactr nl
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads