From: Chuck Hagenbuch Date: Wed, 30 May 2001 16:52:17 +0000 (+0000) Subject: Include the To: address in the overview information (already in the X-Git-Tag: PRE_GRANULAR_GARBAGE_FIX~179 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=093a807c11e8d9493e09ed6554d92314627fac16;p=php Include the To: address in the overview information (already in the envelope; it doesn't cost us anything). --- diff --git a/ext/imap/php_imap.c b/ext/imap/php_imap.c index 2b1ad60b55..0bc6d1fe45 100644 --- a/ext/imap/php_imap.c +++ b/ext/imap/php_imap.c @@ -3137,6 +3137,12 @@ PHP_FUNCTION(imap_fetch_overview) rfc822_write_address(address, env->from); add_property_string(myoverview, "from", address, 1); } + if (env->to) { + env->to->next = NULL; + address[0] = '\0'; + rfc822_write_address(address, env->to); + add_property_string(myoverview, "to", address, 1); + } if (env->date) { add_property_string(myoverview, "date", env->date, 1); }