[10479] in Athena Bugs

home help back first fref pref prev next nref lref last post

rsaix 7.5B: xmh

daemon@ATHENA.MIT.EDU (tom palka)
Fri Apr 30 10:35:24 1993

Date: Fri, 30 Apr 1993 10:35:18 -0400
To: bugs@Athena.MIT.EDU
Cc: fuellen@Athena.MIT.EDU
From: tom palka <tompalka@mit.edu>


System name:		air-traffic-controller
Type and version:	POWER 7.5B
Display type:		graygda

What were you trying to do?

I was trying to use the replyInsertFilter resource of xmh to specify a
filter for inserting messages.  According to the man page:

     replyInsertFilter
             An sh command to be executed when the Insert button
             is activated in a composition window.  The full path
             and filename of the source message is appended to
             the command before being passed to sh(1).  The
             default filter is cat; i.e. it inserts the entire
             message into the composition.  Interesting filters
             are: sed 's/^/> /' or awk -e '{print "    " $0}' or
             <mh directory>/lib/mhl -form mhl.body.

I used the following resources:

	Xmh*replyInsertFilter:  awk '{print ">> " $0}'
and
	Xmh*replyInsertFilter:  sed 's/^/> /'


What's wrong:

Well, neither worked.  In fact the manual page is incorrect.  The name
for the resource, by looking at /usr/athena/lib/X11/app-defaults/Xmh is:

	Xmh.ReplyInsertFilter:          cat


What should have happened:

When I hit "insert" in the reply window xmh should have pasted the
message I'm replying to with "> " prepended to each line.


Please describe any relevant documentation references:

man xmh (the section i included above), Xmh app-defaults.
my ~/.mh_profile is very standard:

    Folder-Protect: 700
    Msg-Protect: 	600
    Path: 		Mail
    Signature:		tom palka
    rmmproc: 		/bin/rm


home help back first fref pref prev next nref lref last post