1 --- mini_sendmail-1.3.5.org/mini_sendmail.c 2003-11-17 03:03:35.000000000 +0100
2 +++ mini_sendmail-1.3.5/mini_sendmail.c 2007-04-08 19:46:42.000000000 +0200
6 /* Strip off any angle brackets. */
8 while ( len > 0 && *recipient == '<' )
14 (void) snprintf( buf, sizeof(buf), "RCPT TO:<%.*s>", len, recipient );
16 + if (len > 0 && recipient[len-1] == '>' )
18 + /* "<name@domain>" or: "Full Name <name@domain>" */
19 + while (len > 0 && *recipient != '<' )
24 + (void) snprintf( buf, sizeof(buf), "RCPT TO:%.*s", len, recipient );
29 + (void) snprintf( buf, sizeof(buf), "RCPT TO:<%.*s>", len, recipient );
33 status = read_response();
34 if ( status != 250 && status != 251 )