Article View: news.software.nn
Article #5723Re: Why can't I e-mail from out of NN 6.4?
From: Superuser
Date: Tue, 19 Apr 1994 23:36
Date: Tue, 19 Apr 1994 23:36
40 lines
2082 bytes
2082 bytes
gryphon@openage.com (The Golden Gryphon) writes:
>In fact, only the "To:" and "Subject:" mail headers are being set by
>nn 6.4.
>I am using "MMDF" under SCO, and I'm not sure the submit is the right
>program to be calling. Either that or I need to figure out how to
>generate a better mail header in order to fix the problem.
I set up NN6.4 with NOV extensions here and had the same problem...
I defined config.h to have a #define REC_MAIL /usr/local/bin/nnsubmit
instead of submit and created the following...
---Cut here---
:
# /usr/local/bin/nnsubmit
# Cludge shell script to get nn 6.4 to work with MMDF under SCO 3.2.4.2
# nn does not provide a From: line when it generates a mail message
# hence /usr/mmdf/bin/submit fails with message
# no author specification present
# Hence... we generate a From: line at the from of the message ourselves
#
# J.Wadelton 6/10/93 - NO LIABILITY ACCEPTED
hname=`hostname`
user=`id|awk ' { pos1=index($0,"(")+1
pos2=index($0,")")-pos1
print substr($0,pos1,pos2) }'`
fromaddr="From: $user@$hname"
(
echo $fromaddr
cat -
)| /usr/mmdf/bin/submit -mlrxto
exit 0
---Cut here---
Hope this helps
John Wadelton
Technical Details
Message-ID:
<2p1ptc$4ol@ipx1.agvic.gov.au>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-biz.sco.general.mbox.zip!gmd.de!nntp.gmd.de!newsserver.jvnc.net!yale.edu!yale!zip.eecs.umich.edu!panix!MathWorks.Com!europa.eng.gtefsd.com!library.ucla.edu!ihnp4.ucsd.edu!swrinde!sgiblab!munnari.oz.au!ariel.ucs.unimelb.EDU.AU!ucsvc.ucs.unimelb.edu.au!ipx1.agvic.gov.au!not-for-mailReferences:
<Co9EB1.666@openage.com>Show Full Headers
Complete Article Headers
Message-ID: <2p1ptc$4ol@ipx1.agvic.gov.au> Subject: Re: Why can't I e-mail from out of NN 6.4? Date: Tue, 19 Apr 1994 23:36:12 +0000 From: root@ipx1.agvic.gov.au (Superuser) References: <Co9EB1.666@openage.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-biz.sco.general.mbox.zip!gmd.de!nntp.gmd.de!newsserver.jvnc.net!yale.edu!yale!zip.eecs.umich.edu!panix!MathWorks.Com!europa.eng.gtefsd.com!library.ucla.edu!ihnp4.ucsd.edu!swrinde!sgiblab!munnari.oz.au!ariel.ucs.unimelb.EDU.AU!ucsvc.ucs.unimelb.edu.au!ipx1.agvic.gov.au!not-for-mail Newsgroups: news.software.nn,biz.sco.general Organization: Department of Agriculture (Victoria, Australia) NNTP-Posting-Host: 202.12.32.2 Lines: 39