🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.mail.mush
Article #793

Re: mush & nn

#793
From: Nino Margetic
Date: Thu, 23 May 1991 12:30
53 lines
2548 bytes
In <9105230149.AA29634@cse.ogi.edu> schaefer@cse.ogi.EDU writes:

>On May 22,  9:01pm, Bill Petro wrote:
>} Subject: Re: mush & nn
>}
>} In your nn init file (probably ~/.nn/init) put these lines:
>} 
>} set mailer /home/speedway/rock/bin/mush_script
>} set mailer-pipe-input
>} 
>} (of course, replace the pathname with yours)
>} 
>} In your ~/bin directory, place the mush_script:
>} 
>} 
>} #!/bin/csh -f
>} # set recipient=`grep "To:" $1`
>} ##/home/speedway/rock/bin/mush -h $1 >& /dev/null
>} /home/speedway/rock/bin/zmail -send -draft - >& /dev/null
>} exit 0
>} 

>Of course, those of you who  aren't fortunate enough to have zmail
>will have to do something a bit different. :-)  This should work:

>#!/bin/csh -f
># change /usr/local/bin to whatever your path to mush is ...
>/usr/local/bin/mush -send -draft - >& /dev/null

>The reason nn has problems with mush is that nn assumes that the send
>failed if there is any output from the program.  Mush helpfully reports
>how many lines it read from the input, which nn interprets as an error.

*** Thanks. I hope it works (since I've just made the neccessary changes to
the init file, it better be OK :-)!!! But, I'm not sure the solution as 
proposed actually does what I wanted it to do. Namely, my original posting
was inspired by the my_hdr option available in mush. However, the same
.mushrc file which works nicely in mail, doesn't seem to have any effect
when mush is used from the news reader! Is that due to the fact that mush
is used with -send and -draft, while the input messg comes from the
stdin??

Is there a way of overcoming this problem (ie not being able to use
my_hdr option /and, for that matter, other goodies which mush provides/),
or am I (yet again :-) missing something important??

--Nino

-- 
Janet: nino@uk.ac.ucl.sm.mph                    \    Nino Margetic
Earn/Bitnet: nino@mph.sm.ucl.ac.uk               \   Dept. of Medical Physics
Internet: nino%mph.sm.ucl.ac.uk@nsfnet-relay.ac.uk\  University College London
Bang-path: ....!mcvax!ukc!ucl-mph!nino             \ Tel:+44-71-380-9300/x5313
Technical Details
Message-ID: <1991May23.123004.11369@ioe.lon.ac.uk>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!uunet!mcsun!ukc!educ-isis!teexnma
References: <9105230149.AA29634@cse.ogi.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!uunet!mcsun!ukc!educ-isis!teexnma
From: teexnma@ioe.lon.ac.uk (Nino Margetic)
Newsgroups: comp.mail.mush
Subject: Re: mush & nn
Message-ID: <1991May23.123004.11369@ioe.lon.ac.uk>
Date: 23 May 91 12:30:04 GMT
References: <9105230149.AA29634@cse.ogi.edu>
Organization: Dept. of Medical Physics - University College London
Lines: 53