Date: Sun, 2 Nov 2008 16:28:57 GMT From: Helmut Schneider <jumper99@gmx.de> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/128540: mail/mini_sendmail-1.3.6 requires patch to work properly Message-ID: <200811021628.mA2GSv5G028195@www.freebsd.org> Resent-Message-ID: <200811021630.mA2GU2vV036872@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 128540 >Category: ports >Synopsis: mail/mini_sendmail-1.3.6 requires patch to work properly >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Nov 02 16:30:01 UTC 2008 >Closed-Date: >Last-Modified: >Originator: Helmut Schneider >Release: >Organization: >Environment: >Description: mini_sendmail requires patch to work properly: http://www.mail-archive.com/ports@openbsd.org/msg17690.html >How-To-Repeat: >Fix: Patch attached with submission follows: --- mini_sendmail.c.orig 2005-06-29 19:37:15.000000000 +0200 +++ mini_sendmail.c 2008-11-02 17:09:53.000000000 +0100 @@ -542,6 +542,7 @@ } /* Strip off any angle brackets. */ +/* while ( len > 0 && *recipient == '<' ) { ++recipient; @@ -551,6 +552,23 @@ --len; (void) snprintf( buf, sizeof(buf), "RCPT TO:<%.*s>", len, recipient ); +*/ + if (len > 0 && recipient[len-1] == '>' ) + { + /* "<name@domain>" or: "Full Name <name@domain>" */ + while (len > 0 && *recipient != '<' ) + { + ++recipient; + --len; + } + (void) snprintf( buf, sizeof(buf), "RCPT TO:%.*s", len, recipient ); + } + else + { + /* name@domain */ + (void) snprintf( buf, sizeof(buf), "RCPT TO:<%.*s>", len, recipient ); + } + send_command( buf ); status = read_response(); if ( status != 250 && status != 251 ) >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200811021628.mA2GSv5G028195>