[comp.mail.mh] filter files for replying to messages

miller@ria.ccs.uwo.ca (J G Miller) (09/07/90)

I have been trying to set up a filter file for use with repl,
but only with partial success.

For the Date I specify the following -

Date:formatfield="On %(putstr(weekday{text})), %(putstr(lmonth{text})) \
%02(putnumf(mday{text}))th, 19%02(putnumf(year{text})), at \
%02(putnumf(hour{text})):%02(putnumf(min{text}))h %(putstr(tzone{text})),",nocomponent

which works fine, except a blank line is inserted in the text before
the next line.  How do I get the next line of text to immediately
follow the line on which the date information has been written?

I would also like to add some text to the following fields -

Message-Id:formatfield="in message %(putstr{text}),",nocomponent
Subject:formatfield="on the subject of %(putstr{text}) you write ",nocomponent

However, whatever I put in the formatfield for these items is ignored.
Is this a bug, or am I doing something wrong?  

Your assitance is greatly appreciated.
Thank you!

-- 
  J G Miller                         telephone:  (519) 679-2111 extension 6325
  Room 024, Chemistry Building        InterNet:  <a4346@uwocc1.uwo.CA>
  University of Western Ontario       NetNorth:  <A4346@UWOCC1.BITNET>
  LONDON, Ontario, N6A 5B7            mailpath:  {uunet!watmath,utai}!ria!a4346

jdpeek@RODAN.ACS.SYR.EDU (Jerry Peek) (09/07/90)

On Friday, September 07th, 1990, at 11:14h GMT,
in message <972@ria.ccs.uwo.ca> ,
on the subject of filter files for replying to messages  you write 
about your filter file, which I used to send this reply.  The command I
used to send this reply was:

	repl -filter replfilt.jgmiller

My filter file looks like this (but not indented by a tab):

	Date:formatfield="On %(weekday{text}), %(lmonth{text}) \
	%02(mday{text})th, 19%02(year{text}), at \
	%02(hour{text}):%02(min{text})h %(tzone{text}),",nocomponent
	Message-Id:formatfield="in message %{text},",nocomponent
	Subject:formatfield="on the subject of %{text} you write ",nocomponent

Yours worked fine the way it was.  But (and this is why I sent the reply
to the list, instead of replying directly)... your use of %(putstr) and
%(putnumf) was redundant.  The default action is to print, and the field
widths (like %02) also work by default.  My filter file doesn't use them...
though I hear that some earlier versions of MH might need them.
My version is:

version: MH 6.7 #1[UCI] (eeyore.cns.syr.edu) of Wed Aug 22 13:23:31 EDT 1990
options: [BIND] [BSD42] [BSD43] [DUMB] [FOLDPROT='"0700"'] [MHRC]
         [MSGPROT='"0600"'] [RPATHS] [SUN40] [TYPESIG='void'] [ZONEINFO]
         [SENDMTS] [SMTP] [POP]

Could this be a problem in an earlier version of MH?  Ideas, anyone?

--Jerry Peek; Syracuse University Academic Computing Services; Syracuse, NY
  jdpeek@rodan.acs.syr.edu, JDPEEK@SUNRISE.BITNET        +1 315 443-3995