🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nn
Article #2726

Re: Marrying mh with nn---how?

#2726
From: ###.C.H.A.W.###
Date: Thu, 07 May 1992 06:34
48 lines
2061 bytes
Here's a solution, courtesy Jaap Vermeulen <jaap@sequent.com>:

[QUOTE:

Just to prove you *can* do it, I hacked the following together:

I added 'set mail-script /h/jaap/.nn/mail-script' to my init file.
Then I copied '/usr/local/lib/nn/aux' to /h/jaap/.nn/mail-script'. Next
I modified aux a little.  Here is a diff of the modification:

*** /usr/local/lib/nn/aux	Thu Apr  2 05:30:11 1992
--- /h/jaap/.nn/mail-script	Wed May  6 22:49:55 1992
***************
*** 167,172
    e*)
      # call editor to enter at line $ED_LINE of work file
  
      case `basename "${EDITOR-vi}"` in
      vi|emacs|emacsclient )
        # Berkeley vi display editor

--- 167,181 -----
    e*)
      # call editor to enter at line $ED_LINE of work file
  
+     DRAFTFOLDER=$HOME/Mail/drafts
+ 
+     number=`cd $DRAFTFOLDER; ls [0-9]* | sed -n '$p'`
+     number=`expr $number + 1`
+ 	
+     cp $WORK $DRAFTFOLDER/$number
+     exec comp -editor "${EDITOR-vi}" -use -draftfolder $DRAFTFOLDER \
+ 		-draftmessage $number
+ 
      case `basename "${EDITOR-vi}"` in
      vi|emacs|emacsclient )
        # Berkeley vi display editor

And this works for me (this mail message is the result :-).  Although
this is a crude  example, I hope it will give you an idea of what to
do.  Good luck,

]

Worked for me too! :-)

-Chaw
Technical Details
Message-ID: <chaw.705220446@Xenon.Stanford.EDU>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.nn.mbox.zip!sparky!uunet!stanford.edu!CSD-NewsHost.Stanford.EDU!Xenon.Stanford.EDU!chaw
References: <chaw.705210758@Xenon.Stanford.EDU>

Show Full Headers
Complete Article Headers
Message-ID: <chaw.705220446@Xenon.Stanford.EDU>
Subject: Re: Marrying mh with nn---how?
Date: Thu, 07 May 1992 06:34:06 +0000
From: chaw@Xenon.Stanford.EDU (###.C.H.A.W.###)
References: <chaw.705210758@Xenon.Stanford.EDU>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.nn.mbox.zip!sparky!uunet!stanford.edu!CSD-NewsHost.Stanford.EDU!Xenon.Stanford.EDU!chaw
Newsgroups: news.software.nn
Keywords: nn mh
Sender: news@CSD-NewsHost.Stanford.EDU
Organization: CS Department, Stanford University, California, USA
Distribution: news
Lines: 49