[comp.mail.mh] need help with getting Xmh's ReplyInsertFilter to work

hodges@Breakaway.Stanford.EDU (Jeff Hodges) (03/06/91)

I've been messing around trying to get Xmh's ReplyInsertFilter to work.
When I hit the Insert button, the message being replied to is indeed
inserted into my composition at the insertion point, but without the
embellishments I want awk to add. Here's my ReplyInsertFilter resource...

Xmh*ReplyInsertFilter:	awk '{print "> " $0}'

..this awk command works fine when tested manually on a csh command line.

I'm using the xmh from X11R4 distribution. I'm not sure of the patch
level as I didn't build it, it most likely isn't up to the latest level. 

I'm running on a 3100 with...

ULTRIX V4.0 (Rev. 179) System #5: Mon Aug 27 11:08:21 PDT 1990
UWS V4.0 (Rev. 164)

And my repl version is...

version: MH 6.5 #74[UCI] (sairam) of Thu Mar 15 04:49:36 EST 1990
options: [BANG] [ATZ] [ISI] [MHRC] [WHATNOW] [BSD42] [BERK] [TTYD]
         [DUMB] [MHE] [NETWORK] [BIND] [RPATHS] [SBACKUP='"#"']
         [SENDMTS] [SMTP]


If you can help, great. Please respond to me directly as I do not keep
up with these newsgroups regularly.

thanks,

Jeff

nelson@wrl.epi.com (Ken Nelson) (03/07/91)

Here is what works for us:

In .Xdefaults

  Xmh.ReplyInsertFilter:  insert_filt

insert_filt is this:

  /usr/local/lib/mh/mhl -form mhl.body $1 | awk -e '{print"> " $0}'

I suppose you could put the contents of the insert_filt script into
the .Xdefaults resource as well.

Hope this helps.

-- 

 --------------------------------------------------------------------
| Ken Nelson  (nelson@wrl.epi.com) | No thoughts today, sorry.	     | 
| Computer Systems Manager         |				     |
| Entropic Research Laboratory     |				     |	
| Washington, D.C.		   |				     |
|--------------------------------------------------------------------

hodges@Breakaway.Stanford.EDU (Jeff Hodges) (03/08/91)

The issue is apparently...

There seems to be a bug in xmh such that the resource
	Xmh*ReplyInsertFilter
	
is ignored, but Xmh.ReplyInsertFilter is recognized.  


..according to jqj@duff.uoregon.edu (JQ Johnson)


I tried it, and it worked. thanks also to nelson@wrl.epi.com (Ken Nelson).



Jeff

gdmr@cs.edinburgh.ac.uk (George Ross) (03/08/91)

In article <1991Mar7.165615.27245@leland.Stanford.EDU>, hodges@Breakaway.Stanford.EDU (Jeff Hodges) writes:
> There seems to be a bug in xmh such that the resource
> 	Xmh*ReplyInsertFilter
> is ignored, but Xmh.ReplyInsertFilter is recognized.

The reason is that the app-defaults file has "Xmh.ReplyInsertFilter: cat"
in it.  Your definition with '*' instead of '.' is less specific, so it's ignored
in favour of the app-defaults one.
-- 
George D M Ross, Department of Computer Science, University of Edinburgh
031-650 5147 or 031-667 1081    gdmr@uk.ac.ed.cs (or cs.ed.ac.uk if you prefer)