🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
4 messages
4 total messages Started by Chris Goellner Fri, 19 Apr 1996 00:00
Address in tin
#20719
Author: Chris Goellner
Date: Fri, 19 Apr 1996 00:00
7 lines
670 bytes
I'm running tin on an HP9000 inside a firewal with an NNTP
server in the DMZ.

When I post an article my from: field is screwed up.
Can anyone help?

Re: Address in tin
#20807
Author: Phil Edwards
Date: Mon, 22 Apr 1996 00:00
22 lines
1258 bytes
With <4l8emq$9gf@mailgate.ustc.ciba.com>,
it seems Chris Goellner (goellch1@PROBLEM_WITH_INEWS_GATEWAY_FILE) sez:

+ I'm running tin on an HP9000 inside a firewal with an NNTP
+ server in the DMZ.
+ 
+ When I post an article my from: field is screwed up.
+ Can anyone help?

There's an INSTALL and README file in the distribution.  Read them.  They
discuss the compilation options which /must/ be set.


Luck++;
Phil

-- 
#include<std/disclaimer.h>               The gods do not protect fools. Fools
finger pedwards@gamma.cs.wright.edu      are protected by more capable fools.
email pedwards@valhalla.cs.wright.edu                            -Larry Niven

Re: Address in tin
#20835
Author: binki
Date: Mon, 22 Apr 1996 00:00
4 lines
610 bytes
Please let me know too if anyone knows the answer to this one!
Thanks--

Re: Address in tin
#20970
Author: 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");
      }
   }


Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads