[comp.mail.mh] repl components and filter files: a clarification

eo@ansa.co.UK (Ed Oskiewicz) (04/08/91)

One of our users was unable to write a filter file to include the body of the
message being repl'd to AND also to have their signature at the bottom of the
message. As usual the answer is blindingly obvious once you've seen it but is
not necessarily obvious before that (certainly not to beginners).

The problem being that repl uses the repl components file to construct the
header of the message and the filter is then used to construct the remainder.
The obvious first step is to type your signature after the filter, this leads
to an error message and some head scratching. However, if you prefix each line
of the signature with a colon then all is well. Thus to augment section 6.7.5
of The Book, my copy of replfilt might contain

body:component="> ",compwidth=0
:
:Cheers,
:
:Ed Oskiewicz
:
:email: eo@ansa.co.uk (mcsun!ukc!ansa!eo)       ANSA,

etc. As I said, obvious once you've seen it. Is this worth explaining in the
repl man page?

Cheers,

Ed Oskiewicz

email:	eo@ansa.co.uk (mcsun!ukc!ansa!eo)	ANSA,
tel:	+44 223 323 010				Poseidon House,
fax:	+44 223 359 779				Castle Park,
						Cambridge CB3 0RD, UK

jerry@ORA.ORA.COM (Jerry Peek) (04/09/91)

In message <9104081646.AA02571@caligula.ansa.co.uk>, Ed Oskiewicz <eo@ansa.co.UK> wrote:
> a filter file to include the body of the message being repl'd to
> AND also to have their signature at the bottom of the message.
	...
> Thus to augment section 6.7.5 of The Book, my copy of replfilt might contain
	...
>	body:component="> ",compwidth=0
	...
>	:email: eo@ansa.co.uk (mcsun!ukc!ansa!eo)       ANSA,
	...
> Is this worth explaining in the repl man page?

The MH 6.7 repl(1) man page gives a couple of examples with filter
files.  One like this might not be a bad idea, though...

The Nutshell MH book actually does cover that, back in section 8.9.6.
This is probably worth a reference from 6.7.5, eh?

Something related: as section 8.9.6 mentions, it's not easy to add a
signature to the ends of messages you forward with forw(1) because the
signature always goes in the wrong place.  Using a sendproc (in your MH
profile) might be the cleanest way to add signatures to *all* your
messages -- with comp, repl and forw.  I've never done it because I'm not
really "into" signatures, also because I hate to mess with something as
important as the programs that send my messages unless I really have to.

Does anyone use a sendproc to add signatures to your messages?  How well
does it work for you and what problems have you run into?  Or what other
way do you add signatures with forw?  Thanks...

--Jerry Peek, jerry@ora.com, uunet!ora!jerry

shah@santur.tay1.dec.com (Amitabh Shah) (04/09/91)

In article <9104081646.AA02571@caligula.ansa.co.uk>, eo@ansa (Ed Oskiewicz) writes:
>However, if you prefix each line
>of the signature with a colon then all is well. Thus to augment section 6.7.5
>of The Book, my copy of replfilt might contain
>
>body:component="> ",compwidth=0
>:
>:Cheers,
>:
>:Ed Oskiewicz
>:
>:email: eo@ansa.co.uk (mcsun!ukc!ansa!eo)       ANSA,
>

I use a similar filter file, and it works well for replies, but not for
forwards. The problem is that the lines "--------begin forwarded message---"
and "----- end forwarded message-------" enclose the whole body being
forwarded, INCLUDING THE SIGNATURE LINES. I would like the signature lines to
appear after the "-----end-----" line. 

Is there an easy fix for this? (I'm using MH6.6; will soon upgrade to 6.7.)

Also, there seems a bug in the filtering, so that the component strings like
"> " appear every so many characters; seems like a buffer overflow somewhere.
Is this fixed in 6.7? The 6.7 changes doc does not say so.

-amitabh.
_______________________________________________________________________________
Amitabh Shah                               shah@santur.tay1.dec.com--(INTERNET)
Digital Equipment Corporation		   {..}!decwrl!santur.tay1!shah--(UUCP)
TP Systems Performance			   +1 508 952 4430--------------(PHONE)
151 Taylor St. Littleton MA 01460	   +1 508 952 4197----------------(FAX)