2007-08-28 16:01:46 +00:00
|
|
|
Index: mini_sendmail-1.3.6/mini_sendmail.c
|
|
|
|
===================================================================
|
|
|
|
--- mini_sendmail-1.3.6.orig/mini_sendmail.c 2007-08-28 17:58:37.000000000 +0200
|
|
|
|
+++ mini_sendmail-1.3.6/mini_sendmail.c 2007-08-28 17:58:37.000000000 +0200
|
|
|
|
@@ -542,6 +542,7 @@
|
2007-04-10 10:36:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Strip off any angle brackets. */
|
|
|
|
+/*
|
|
|
|
while ( len > 0 && *recipient == '<' )
|
|
|
|
{
|
|
|
|
++recipient;
|
2007-08-28 16:01:46 +00:00
|
|
|
@@ -551,6 +552,23 @@
|
2007-04-10 10:36:51 +00:00
|
|
|
--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 )
|