ports/128540: mail/mini_sendmail-1.3.6 requires patch to work properly
Helmut Schneider
jumper99 at gmx.de
Sun Nov 2 16:30:02 UTC 2008
>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 at domain>" or: "Full Name <name at domain>" */
+ while (len > 0 && *recipient != '<' )
+ {
+ ++recipient;
+ --len;
+ }
+ (void) snprintf( buf, sizeof(buf), "RCPT TO:%.*s", len, recipient );
+ }
+ else
+ {
+ /* name at 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:
More information about the freebsd-ports-bugs
mailing list