]> granicus.if.org Git - php/commitdiff
Include the To: address in the overview information (already in the
authorChuck Hagenbuch <chagenbu@php.net>
Wed, 30 May 2001 16:52:17 +0000 (16:52 +0000)
committerChuck Hagenbuch <chagenbu@php.net>
Wed, 30 May 2001 16:52:17 +0000 (16:52 +0000)
envelope; it doesn't cost us anything).

ext/imap/php_imap.c

index 2b1ad60b55e5a0e168552c4b0c348ffc01b88b49..0bc6d1fe45bdd87c805efd43afa17b3305d66e13 100644 (file)
@@ -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);
                                }