🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.mail.mh
Article #1843

Re: repl with emacs

#1843
From: Vick Khera
Date: Tue, 04 Apr 1989 21:08
100 lines
4495 bytes
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
Technical Details
Message-ID: <14090@duke.cs.duke.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uflorida!haven!uvaarpa!mcnc!duke!juliet!khera
References: <8904041720.AA16960@decwrl.dec.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uflorida!haven!uvaarpa!mcnc!duke!juliet!khera
From: khera@juliet.cs.duke.edu (Vick Khera)
Newsgroups: comp.mail.mh
Subject: Re: repl with emacs
Message-ID: <14090@duke.cs.duke.edu>
Date: 4 Apr 89 21:08:50 GMT
References: <8904041720.AA16960@decwrl.dec.com>
Sender: news@duke.cs.duke.edu
Reply-To: khera@cs.duke.edu (Vick Khera)
Organization: Duke University CS Dept.; Durham, NC
Lines: 100