Article View: news.software.nn
Article #718Re: 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
39 lines
2099 bytes
2099 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:
arc1-ca.pugleaf.net!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
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1023f5,4458947403097617 X-Google-Attributes: gid1023f5,public X-Google-Thread: 1122ea,4458947403097617 X-Google-Attributes: gid1122ea,public X-Google-ArrivalTime: 1994-04-20 16:12:12 PST Path: arc1-ca.pugleaf.net!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 Subject: Re: Why can't I e-mail from out of NN 6.4? Message-ID: <2p1ptc$4ol@ipx1.agvic.gov.au> From: root@ipx1.agvic.gov.au (Superuser) Date: 19 Apr 1994 13:36:12 -1000 References: <Co9EB1.666@openage.com> Organization: Department of Agriculture (Victoria, Australia) NNTP-Posting-Host: 202.12.32.2 Lines: 39