[comp.mail.mh] repl with emacs

paine@fungus.dec.com (Willy Paine) (04/05/89)

I just switch from vi to emacs and I have two questions:
 
1. I use vi commmand  :r @ in repl to copy all my recieving message into
new repl message but I tried to do samething with emacs in either emacs
or vip mode but this looks for /usr/spool/mail which is already empty
and this should look for inbox message (I guess).   emacs is very
sensitive on unix csh environment.  I am running Ultrix v3.0 and I don't
know what version of mh.   I would like to know how can I quote all
recieving message into emacs editor.
 
2. How can I get ">" on left side of all recieving message into repl
editor so I can quote this recieving message more clear?
 
for example:
 
> I am using mh mailer...
I like this mailer.
 
 
I don't have good doc on mh and I would like to get more information on
mh.
 
Thank you..
 
Willy
 
p.s. it would be nice to add signature under my name and my company does
not use usenet signature at all.
 

khera@juliet.cs.duke.edu (Vick Khera) (04/05/89)

In article <8904041720.AA16960@decwrl.dec.com> paine@fungus.dec.com (Willy Paine) writes:
>I just switch from vi to emacs and I have two questions:
>1. I use vi commmand  :r @ in repl to copy all my recieving message into
>new repl message but I tried to do samething with emacs in either emacs
>or vip mode but this looks for /usr/spool/mail which is already empty
>and this should look for inbox message (I guess).   emacs is very
>sensitive on unix csh environment.  I am running Ultrix v3.0 and I don't
>know what version of mh.   I would like to know how can I quote all
>recieving message into emacs editor.

try using gnu-emacs mh-mail facility. i don't use it but it should be
documented.  this lets you use mh from within emacs. at least i believe
this is what you are trying to ask...

>2. How can I get ">" on left side of all recieving message into repl
>editor so I can quote this recieving message more clear?

here is how i do this: (all files are in my mh Mail directory.)

the file replcomps describes the format of the messages i "repl" to.
the file replfilter describes how to pre-process the message i am "repl"ing
to, and replfiltercomps is the equivalent of replcomps when i use the
filter. in order to get the message i am replying to included, i use the
alias ``alias repli "repl -form replfiltercomps -filter replfilter"''. the
way i have it set, the message is included with vertical bars to the left
and a separator line at the top and bottom. my ``signature'' consists of
the ``v.'' at the end of two of the files. you can replace that with
anything you wish.  alternatively, if you want all replies to include the
original message, add the following line to .mh_profile and ignore the
alias for repli.

repl: -filter replfilter

and also move the file replfiltercomps to replcomps.

---<cut here for replcomps>---
%(lit)%(formataddr %<{reply-to}%|%<{from}%|%<{sender}%|%{return-path}%>%>%>)\
%<(nonnull)%(void(width))%(putaddr To: )\n%>\
%(lit)%(formataddr{to})%(formataddr{cc})%(formataddr(me))\
%<(nonnull)%(void(width))%(putaddr cc: )\n%>\
%<{fcc}Fcc: %{fcc}\n%>\
Fcc: 
%<{subject}Subject: Re: %{subject}\n%>\
%<{date}In-reply-to: Your message of \
%<(nodate{date})%{date}%|%(tws{date})%>.%<{message-id}
             %{message-id}%>\n%>\
--------

								v.
---<end of replcomps>---
---<cut here for replfilter>---
leftadjust
ignores=msgid,message-id,received,replied,return-path
:+---------
To:component="| To"
cc:component="| cc"
From:component="| From"
Subject:component="| Subject"
Newsgroups:component="| Newsgroups"
Date:component="| Date"
:|
body:component="| "
:+---------
:
:								v.
---<end of replfilter>---
---<cut here for replfiltercomps>---
%(lit)%(formataddr %<{reply-to}%|%<{from}%|%<{sender}%|%{return-path}%>%>%>)\
%<(nonnull)%(void(width))%(putaddr To: )\n%>\
%(lit)%(formataddr{to})%(formataddr{cc})%(formataddr(me))\
%<(nonnull)%(void(width))%(putaddr cc: )\n%>\
%<{fcc}Fcc: %{fcc}\n%>\
Fcc: 
%<{subject}Subject: Re: %{subject}\n%>\
%<{date}In-reply-to: Your message of \
%<(nodate{date})%{date}%|%(tws{date})%>.%<{message-id}
             %{message-id}%>\n%>\
--------
---<end of replfiltercomps>---

> 
>I don't have good doc on mh and I would like to get more information on
>mh.

if you have sources, the documentation is in there in troff format. look
for it. also, to determine which version you are running and with which
compile-time options, use the -help option to any mh command, e.g.,
``msgchk -help'' will give you the info. here is my configuration:

version: MH 6.6 #2[UCI] (juliet) of Thu Sep 15 17:35:42 EDT 1988
options: [BSD42] [MHE] [NETWORK] [BERK] [MHRC] [WHATNOW] [OVERHEAD]
         [BIND] [SENDMTS] [SMTP]

hope this all helps.

							vick.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
ARPA:	khera@cs.duke.edu		Department of Computer Science
CSNET:	khera@duke			Duke University
UUCP:	{mcnc,decvax}!duke!khera	Durham, NC 27706

gregg@ihlpb.ATT.COM (Wonderly) (04/05/89)

From article <14090@duke.cs.duke.edu>, by khera@juliet.cs.duke.edu (Vick Khera):
> In article <8904041720.AA16960@decwrl.dec.com> paine@fungus.dec.com (Willy Paine) writes:
>>2. How can I get ">" on left side of all recieving message into repl
>>editor so I can quote this recieving message more clear?
> 
> here is how i do this: (all files are in my mh Mail directory.)
> 
> the file replcomps describes the format of the messages i "repl" to.
> the file replfilter describes how to pre-process the message i am "repl"ing
> to, and replfiltercomps is the equivalent of replcomps when i use the
> filter. in order to get the message i am replying to included, i use the
> alias ``alias repli "repl -form replfiltercomps -filter replfilter"''. the

Or if you have symbolic links, do

	ln -s `whence repl` ~/bin/repli

and add the line

	repli: -form -replfiltercomps -filter replfilter

to your mh_profile.

-- 
Gregg Wonderly                             DOMAIN: gregg@ihlpb.att.com
AT&T Bell Laboratories                     UUCP:   att!ihlpb!gregg