Subject: News posting without full address

From: Bill Hudson <[email-masked]>
Date: Fri, 10 Feb 1995 13:47:08 -0800

My news postings are going out without the full address... instead of 
[email-masked], or [email-masked], they are posting with [email-masked]

Anybody have any clues on how to resolve this?

I'm running Pine 3.91 on an SCO Unix (3.2.4.2) box.

Thanks.

============================================================================
Bill Hudson; System Administrator; Robert Mann Packaging INC, Gilroy, CA USA 
[email-masked] [email-masked] [email-masked] 
Tel: 1.408.848.5440   Fax: 1.408.848.2063

---

From: Terry Gray <[email-masked]>
Date: Sat, 11 Feb 1995 18:30:26 -0800 (PST)

Hal and Bill,
Both your messages leave me wondering if Pine's "user-domain" variable is 
not working for you, or if you simply haven't tried it.  It should certainly 
not be necessary to change any code to set whatever domain name you want!

-teg

p.s for Hal: a common reason for gethostname to return the wrong (short)
version is that the names are in the wrong order in the /etc/hosts file.
I believe the FQDN should be first.

On 11 Feb 1995, Hal Render wrote:

> FWIW, I ended up doing a "gross kludge" on this.  The routine that sets
> the return addresses in pine (for both mail and news) is getdomainnames(), 
> defined in the file pine/osdep/domnames.  The original function checks to 
> see if there is a local domain name attached to the host name, but if there 
> isn't it simply uses the hostname as both the FQDN and the local domain
> name.  I solved this by tacking on local domain name onto the hostname.  
> This is the only "simple" solution I could see (there's probably a preferred 
> way to get the full domain name from someplace other that gethostname(), but 
> I don't know what it is).  What pine could do is allow the user to define 
> a constant set to the local domain and put the code below in an #ifdef-#endif
> 
> Anyway, here is the diff (replace "uccs.edu" with your local domain name):
> 
> 	pine/osdep/domnames
> 	47c47,48
> 	<         strncpy(domainname, hostname, dsize-1);
> 	---
> 	>         strcat(hostname, ".uccs.edu");
> 	>         strcpy(domainname, "uccs.edu");
> --
> hal render
> univ. of colorado at colorado springs
> [email-masked]
>