diff options
author | Chuck Hagenbuch <chagenbu@php.net> | 2001-05-30 16:52:17 +0000 |
---|---|---|
committer | Chuck Hagenbuch <chagenbu@php.net> | 2001-05-30 16:52:17 +0000 |
commit | 093a807c11e8d9493e09ed6554d92314627fac16 (patch) | |
tree | 1707c07e91120638ba3e87eaf9fba88c7830a505 /ext/imap/php_imap.c | |
parent | 1d115dbe8cc330136b2623442ebc62e9180709c4 (diff) | |
download | php-git-093a807c11e8d9493e09ed6554d92314627fac16.tar.gz |
Include the To: address in the overview information (already in the
envelope; it doesn't cost us anything).
Diffstat (limited to 'ext/imap/php_imap.c')
-rw-r--r-- | ext/imap/php_imap.c | 6 |
1 files changed, 6 insertions, 0 deletions
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); } |