Bug#415134: Mailto uses wrong hostname

2007-03-17 Thread Martin Schulze
Rob van der Putten wrote: Package: mailto Version: 1.2.6 Version: 1.3.2 Hi there Mailto uses gethostbyname() to get the hostname; /* Get the local hostname for later insertion */ gethostname(localhost, sizeof(localhost)); if ( index(localhost, '.')) {

Bug#415134: Mailto uses wrong hostname

2007-03-17 Thread Rob van der Putten
Hi there On Sat, 17 Mar 2007, Martin Schulze wrote: Please be more verbose. Why should gethostname() not return the valid hostname of the host it runs on? If it doesn't return something useful, I'd expect /etc/hostname and thus the hostname setting to be bogus and correction-requiring. On

Bug#415134: Mailto uses wrong hostname

2007-03-17 Thread Martin Schulze
Rob van der Putten wrote: Hi there On Sat, 17 Mar 2007, Martin Schulze wrote: Please be more verbose. Why should gethostname() not return the valid hostname of the host it runs on? If it doesn't return something useful, I'd expect /etc/hostname and thus the hostname setting to be

Bug#415134: Mailto uses wrong hostname

2007-03-16 Thread Rob van der Putten
Package: mailto Version: 1.2.6 Version: 1.3.2 Hi there Mailto uses gethostbyname() to get the hostname; /* Get the local hostname for later insertion */ gethostname(localhost, sizeof(localhost)); if ( index(localhost, '.')) { snprintf(hostname,