🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #20970

Re: Address in tin

#20970
From: Rob-L
Date: Sat, 27 Apr 1996 00:00
81 lines
3155 bytes
binki (binki@PROBLEM_WITH_INEWS_DOMAIN_FILE) wrote:
: Please let me know too if anyone knows the answer to this one!

This comes by way of e-mail from "Charles S. Kerr" <cskerr@delenn.jccbi.gov>:

   Rob-L (rob-l@PROBLEM_WITH_YOUR_MAIL_GATEWAY_FILE.superlink.net) wrote:

   : Where does Tin look for my address to put in the "From:" line of my 
   : usenet posts?

My guess is that the copy of tin that you're running was compiled with
INEWS_MAIL_GATEWAY #defined as the name of some file that contains the
name of the address that goes in the from: line.  Your provider probably
forgot to create the file, or left it empty, or forgot to make it
world-readable, or forgot to place it in a directory that's
world-readable, or deleted it, or lost it or ate it or something.

Or maybe the file _is_ there, readable, and contains one line, which reads
"PROBLEM_WITH_YOUR_MAIL_GATEWAY_FILE". :)

Your best bet is to ask your provider about this file, maybe even pass this
letter on to them.  This seems like an installation problem rather than
something you've done.  If they remember what they #defined as
INEWS_MAIL_GATEWAY as, it should be a quick fix.

Here are the relevant parts of the code in src/inews.c on which my guess is
based:

---

void
get_host_name (host_name)
	char *host_name;
{
   char nntp_inews_gateway[PATH_LEN];
   nntp_inews_gateway[0] = '\0';
   host_name[0] = '\0';


#ifdef INEWS_MAIL_GATEWAY
   if (*(INEWS_MAIL_GATEWAY)) {
      strcpy (nntp_inews_gateway, INEWS_MAIL_GATEWAY);
   }
#endif
       
   if (nntp_inews_gateway[0]) {

   /*
    * If 1st letter is '$' read gateway name from shell variable
    */

   if (nntp_inews_gateway[0] == '$' && nntp_inews_gateway[1]) {
      ptr = (char *) getenv (&nntp_inews_gateway[1]);
      if (ptr != (char *) 0) {
         strncpy (nntp_inews_gateway, ptr, sizeof (nntp_inews_gateway));
      }
   }

   /*
    * If 1st letter is '/' read gateway name from specified file
    */

   if (nntp_inews_gateway[0] == '/') {
      if ((fp = fopen (nntp_inews_gateway, "r")) != (FILE *) 0) {
         if (fgets (host, sizeof (host), fp) != (char *) 0) {
            strcpy (host_name, host);
            ptr = (char *) strrchr (host_name, '\n');
            if (ptr != (char *) 0) {
               *ptr = '\0';
            }
         }
         fclose (fp);
      }
      if (! host_name[0]) {
         strcpy (host_name, "PROBLEM_WITH_YOUR_MAIL_GATEWAY_FILE");
      }
   }


Technical Details
Message-ID: <4ltrd2$ghp@earth.superlink.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
References: <4l8emq$9gf@mailgate.ustc.ciba.com> <4lgekp$70d@echo2.echonyc.com>

Show Full Headers
Complete Article Headers
Message-ID: <4ltrd2$ghp@earth.superlink.net>
Subject: Re: Address in tin
Date: Sat, 27 Apr 1996 00:00:00 +0000
From: rob-l@PROBLEM_WITH_YOUR_MAIL_GATEWAY_FILE.superlink.net (Rob-L)
References: <4l8emq$9gf@mailgate.ustc.ciba.com> <4lgekp$70d@echo2.echonyc.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
X-Deja-AN: 151767760
Organization: It's TIN's fault...
Reply-to: rob-l@mars.superlink.net
Newsgroups: news.software.readers