From: Ilia Alshanetsky Date: Tue, 17 Jun 2003 13:59:56 +0000 (+0000) Subject: MFH X-Git-Tag: php-4.3.3RC1~12 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1b747da374d0718bde1ceed02c198a69c8b09eec;p=php MFH --- diff --git a/ext/imap/php_imap.c b/ext/imap/php_imap.c index 0ad60d0a26..2a2b231b26 100644 --- a/ext/imap/php_imap.c +++ b/ext/imap/php_imap.c @@ -2719,13 +2719,13 @@ PHP_FUNCTION(imap_fetch_overview) if (env->subject) { add_property_string(myoverview, "subject", env->subject, 1); } - if (env->from && _php_imap_address_size(env->from) >= MAILTMPLEN) { + if (env->from && _php_imap_address_size(env->from) < MAILTMPLEN) { env->from->next=NULL; address[0] = '\0'; rfc822_write_address(address, env->from); add_property_string(myoverview, "from", address, 1); } - if (env->to && _php_imap_address_size(env->from) >= MAILTMPLEN) { + if (env->to && _php_imap_address_size(env->from) < MAILTMPLEN) { env->to->next = NULL; address[0] = '\0'; rfc822_write_address(address, env->to);