Article View: news.software.nn
Article #10627Re: [solved?] Problem with NN and /etc/nntpserver
From: Arctic Fidelity
Date: Sat, 05 Mar 2005 05:44
Date: Sat, 05 Mar 2005 05:44
41 lines
3156 bytes
3156 bytes
Michael T Pins <mtpins@visi.com> writes: >Arctic Fidelity <af@homeunix.net> writes: >>was hunky dory for the install. It worked like a charm! Now, I'm still >>having problems with my hostname...anyone want to tackle this? I'm going >>to read up on some stuff and possibly hack some nn code to fix this. >nn uses the gethostname() to get your hostname. What error are you >getting? Basically, it's the correct error, and the program is running precisely as intended. I looked at the code, and saw the gethostname(). I checked up some things. Basically, Slackware's default script sets the hostname to "cat /etc/HOSTNAME | cut -f1 -d." or some such, which means only the first part gets to the actual "hostname". The rest is stored into the dnsdomainname. If you use "hostname -f" you can get the fqdn, but gethostname() returns the main hostname, not the dnsdomain and other such things which are added on with "hostname -f". I thought about hacking around and making it work, but it's not too much trouble for me to remove teh "cut -f1 -d." from the script. I think it's a bit buggish though, as I usually set up my computers so that hostname only gives the first part of the hostname, and not the domain and such. >>Now, the other problem I'm having now is that I need to make nn send a >>different From: header. Because the one I have is munged up badly. I'm >>currently searching for this answer. >What part of it is munged? This may be related to your hostname problem. Yes, I didn't mean that nn was messing it up on purpose. :-) It's doing the right thing, it's just that I have a different return address and such than what my physical computer address is. So...setting a mail-header and news-header worked quite well. - Arctic Fidelity -- "Beware of bugs in the above code; I have only proved it correct, not tried it." -- Donald Knuth
Technical Details
Message-ID:
<lomdndsk2YjI2rTfRVn-iQ@gvtc.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nn.20140326.mbox.gz!number1.nntp.dca.giganews.com!local01.nntp.dca.giganews.com!nntp.gvtc.com!news.gvtc.com.POSTED!not-for-mailReferences:
<c8qdnSJxb57cXb3fRVn-qw@gvtc.com> <2005Feb27.232614.20624@jarvis.cs.toronto.edu> <u8OdnbulQNZ8Lr_fRVn-iQ@gvtc.com> <KrGdnVOTduSTbL7fRVn-tQ@gvtc.com> <112h18kiq7dt887@corp.supernews.com>Show Full Headers
Complete Article Headers
Message-ID: <lomdndsk2YjI2rTfRVn-iQ@gvtc.com> Subject: Re: [solved?] Problem with NN and /etc/nntpserver Date: Fri, 04 Mar 2005 23:44:53 -0600 From: Arctic Fidelity <spam@sacrificumdeo.net> References: <c8qdnSJxb57cXb3fRVn-qw@gvtc.com> <2005Feb27.232614.20624@jarvis.cs.toronto.edu> <u8OdnbulQNZ8Lr_fRVn-iQ@gvtc.com> <KrGdnVOTduSTbL7fRVn-tQ@gvtc.com> <112h18kiq7dt887@corp.supernews.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nn.20140326.mbox.gz!number1.nntp.dca.giganews.com!local01.nntp.dca.giganews.com!nntp.gvtc.com!news.gvtc.com.POSTED!not-for-mail NNTP-Posting-Date: Fri, 04 Mar 2005 23:44:52 -0600 Newsgroups: news.software.nn User-Agent: nn/6.6.5 Lines: 41 X-Trace: sv3-7WpZMBRtlFuDweTmOMGReyqo06FmhWLg8NtL18ykyux0RYBmUHh9AGo3YbeDFo9urmMbqWsDYucqkq/!Krg+5rufWu3lUMxjsoGNIftO2DKrXjtZ/MwNPUDuPr3QQZ29gnD5ImmyN0Xk6BTm3AOX X-Complaints-To: abuse@gvtc.com X-DMCA-Complaints-To: abuse@gvtc.com X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.32