Your message dated Sat, 17 Mar 2007 15:47:02 +0000
with message-id <[EMAIL PROTECTED]>
and subject line Bug#415134: fixed in mailto 1.3.2-2
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
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, sizeof(hostname), "%s", localhost);
        } else {
                hent = gethostbyname(localhost);
                if ( hent )
                        snprintf(hostname, sizeof(hostname), "%s", 
hent->h_name);
                else
                        snprintf(hostname, sizeof(hostname), "%s", localhost);
        }

This OK as long as you don't add www-data to the trusted users in your SMTPD conf. Otherwise you may get an invalid sender address which may be blocked by spam filters.

Adding a 'FILE' var to main;

int main(int argc, char *argv[])
{
        int     c;
        char    *ptr,*nptr;
        char    *address,*fulladdress,*from,*subject,*location;
        char    *tag,*val;
        int     cl,cnt,copyself;
        char    localhost[100];
        struct  hostent *hent;

        /*   RvdP, /etc/mailname   */
        FILE *f1;

And then getting the name from '/etc/mailname';

        /*   RvdP, get the hostname from /etc/mailname   */
        if ((f1 = fopen("/etc/mailname", "r")) != NULL) {
                fscanf(f1, "%254s", hostname);
                fclose(f1);
        }

Will get you a more reliable result.
See;
http://www.sput.nl/software/homebrew/mailto.c
for more info (this version is 1.2.6 based).

Of course, it would be better to use a config statement for this.

There is also something wrong with the 1.3.2 source. It says;

#define ENC_8859_1      "??????"

This probaly should have been something like;

#define ENC_8859_1      
"\0xC4\0xE4\0xD6\0xF6\0xDC\0xFC\0xDF\0xC5\0xE5\0xC6\0xE6\0xF8"


Regards,
Rob
--
+----------------------------------------------------------------------+
|                   Rob van der Putten, [EMAIL PROTECTED]                    |
|               http://www.sput.nl/spam/spam-policy.html               |
+----------------------------------------------------------------------+


--- End Message ---
--- Begin Message ---
Source: mailto
Source-Version: 1.3.2-2

We believe that the bug you reported is fixed in the latest version of
mailto, which is due to be installed in the Debian FTP archive:

mailto_1.3.2-2.diff.gz
  to pool/main/m/mailto/mailto_1.3.2-2.diff.gz
mailto_1.3.2-2.dsc
  to pool/main/m/mailto/mailto_1.3.2-2.dsc
mailto_1.3.2-2_i386.deb
  to pool/main/m/mailto/mailto_1.3.2-2_i386.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [EMAIL PROTECTED],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Martin Schulze <[EMAIL PROTECTED]> (supplier of updated mailto package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [EMAIL PROTECTED])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Sat, 17 Mar 2007 12:55:10 +0100
Source: mailto
Binary: mailto
Architecture: source i386
Version: 1.3.2-2
Distribution: unstable
Urgency: low
Maintainer: Martin Schulze <[EMAIL PROTECTED]>
Changed-By: Martin Schulze <[EMAIL PROTECTED]>
Description: 
 mailto     - WWW Forms to Mail Gateway
Closes: 415134
Changes: 
 mailto (1.3.2-2) unstable; urgency=low
 .
   * Fixed typo in NMU-Disclaimer, thanks to Petter Reinholdtsen (See:
     Bug#225895)
   * Extract the local mail hostname from /etc/mailname (closes:
     Bug#415134)
   * Fixed two compiler warnings
Files: 
 00ee851c949d0c2d5a3683ee84da8476 520 web optional mailto_1.3.2-2.dsc
 29501a5bf5e8dbd91337d65e0b81f27e 14349 web optional mailto_1.3.2-2.diff.gz
 585736876087d64fd9937c89bf5cbc5f 16800 web optional mailto_1.3.2-2_i386.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFF/AyIW5ql+IAeqTIRAvBWAJ9sjUJ82I0uIPIFpds1kbYFcvJBxgCglAcw
q6XBgSE+zAifPlAu/IqRm9c=
=yPDF
-----END PGP SIGNATURE-----


--- End Message ---

Reply via email to