[comp.windows.x] Are there Annotation patches for Xmh

nelson@epiwrl.EPI.COM (Ken Nelson) (10/24/90)

We are just starting to use Xmh.  We like it a lot so
far.  One thing it doesn't do is handle annotation of
replys or forwarded messages.  Does anybody have
a patch that allows that, or know of a version of 
xmh that does it?

	Thanks,

		Ken Nelson

converse@EXPO.LCS.MIT.EDU (10/25/90)

> We are just starting to use Xmh.  We like it a lot so
> far.  One thing it doesn't do is handle annotation of
> replys or forwarded messages.

The reason why the -annotate switch for the MH commands forw and repl
has no effect when you forward or reply to a message through xmh is
that the message is not sent directly from forw or repl.  I recollect
that xmh passes the message off to the MH command send.  This mechanism
prevents annotation from taking place when you use xmh.

> Does anybody have
> a patch that allows that, or know of a version of 
> xmh that does it?

I don't.  But I would be interested in receiving one.  Instead of 
ripping out the use of the MH send command in xmh, I think it would
be easier to add a call to the MH anno command, done around the time
that the message is passed off the send command.


Donna Converse

colas@AVAHI.INRIA.FR (Colas Nahaboo) (11/07/90)

In article <9010241945.AA14659@excess.lcs.mit.edu> you write:
> The reason why the -annotate switch for the MH commands forw and repl
> has no effect...

> > Does anybody have
> > a patch that allows that, or know of a version of 
> > xmh that does it?
> 
> I don't.  But I would be interested in receiving one.

I have!

I Use a shell script, which I call "xmh-mark" which is:

#!/bin/sh
#    marks current message as replied now
trap "" 1
(echo "Replied: `date`"|cat - $1 >/tmp/xmh-mark$$;mv /tmp/xmh-mark$$ $1)&

And I made a button in xmh which triggers it in my .Xdefaults:

xmh*commandBox.button12.bitmap:	mark3d.xbm
xmh*commandBox.button12.translations: #override\
	<Btn1Down>,<Btn1Up>: XmhPrintView(xmh-mark)XmhUpdateViewEntry()unset()

BUT you need to apply the patches I posted (and sent to Donna) to xmh
which allows XmhPrintView to take an optional argument which is a script
shell to apply to the current message. They are available by anonymous ftp
on avahi.inria.fr, as pub/xmh-koala.patch

NOTE: this will allow you to annotate manually by clicking on a button.
To annotate automatically would need a little more patches to xmh...

--
Colas Nahaboo, Bull Research France -- Koala Project -- GWM X11 Window Manager
Internet: colas@mirsa.inria.fr, Phone: (33) 93.65.77.70, Fax: (33) 93 65 77 66
INRIA Sophia, 2004, rte des Lucioles, B.P.109 - 06561 Valbonne Cedex, FRANCE