1 Index: mini_sendmail-1.3.6/mini_sendmail.c
2 ===================================================================
3 --- mini_sendmail-1.3.6.orig/mini_sendmail.c 2007-08-28 17:58:37.000000000 +0200
4 +++ mini_sendmail-1.3.6/mini_sendmail.c 2007-08-28 17:58:37.000000000 +0200
8 /* Strip off any angle brackets. */
10 while ( len > 0 && *recipient == '<' )
16 (void) snprintf( buf, sizeof(buf), "RCPT TO:<%.*s>", len, recipient );
18 + if (len > 0 && recipient[len-1] == '>' )
20 + /* "<name@domain>" or: "Full Name <name@domain>" */
21 + while (len > 0 && *recipient != '<' )
26 + (void) snprintf( buf, sizeof(buf), "RCPT TO:%.*s", len, recipient );
31 + (void) snprintf( buf, sizeof(buf), "RCPT TO:<%.*s>", len, recipient );
35 status = read_response();
36 if ( status != 250 && status != 251 )