#32105 [Fbk-Csd]: imap_sort hangs up on retrieving msg numbers
ID: 32105 User updated by: bosco at musehub dot com Reported By: bosco at musehub dot com -Status: Feedback +Status: Closed Bug Type: IMAP related Operating System: Linux RH9 PHP Version: 4.3.10 New Comment: problems arisen not from imap_sort, but with parsing imap structure with imap_fetchstructure. imap_sort is OK Previous Comments: [2005-02-25 14:21:54] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php4-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-STABLE-latest.zip If that does not work either check the c-client version you're using. [2005-02-25 12:12:03] bosco at musehub dot com Description: imap_sort hangs up when retrieving a particular email message. Not sure what is in the mail header or content that causes the hang. PLEASE NOTE: the same imap_sort function call causes no problems at all for other e-mail (so far). It is only when I receive such an email when the php hangs up. mail_source Return-Path: Received: from mail01.opesware.com ([unix socket]) by mail.opesware.com (Cyrus v2.2.12-1) with LMTPA; Fri, 25 Feb 2005 18:33:48 +0800 X-Sieve: CMU Sieve 2.2 MIME-Version: 1.0 Subject: Considered UNSOLICITED BULK EMAIL from you In-Reply-To: [EMAIL PROTECTED] Message-Id: [EMAIL PROTECTED] Content-Type: multipart/report; report-type=delivery-status; boundary=--=_1109327810-27663-7 From: amavisd-new [EMAIL PROTECTED] To: [EMAIL PROTECTED] Date: Fri, 25 Feb 2005 18:36:50 +0800 (HKT) This is a multi-part message in MIME format... =_1109327810-27663-7 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 7bit Your message to: - [EMAIL PROTECTED] was considered unsolicited bulk e-mail (UBE). Subject: Emailing: www.yahoo.com Return-Path: [EMAIL PROTECTED] Delivery of the email was stopped! =_1109327810-27663-7 Content-Type: message/delivery-status Content-Disposition: inline Content-Transfer-Encoding: 7bit Content-Description: Delivery error report Reporting-MTA: dns; mx1.opesware-gateway.com Received-From-MTA: smtp; mx1.opesware-gateway.com ([127.0.0.1]) Arrival-Date: Fri, 25 Feb 2005 18:36:43 +0800 (HKT) Final-Recipient: rfc822; [EMAIL PROTECTED] Action: failed Status: 5.7.1 Diagnostic-Code: smtp; 550 5.7.1 Message content rejected, UBE, id=27663-07 Last-Attempt-Date: Fri, 25 Feb 2005 18:36:50 +0800 (HKT) =_1109327810-27663-7 Content-Type: text/rfc822-headers Content-Disposition: inline Content-Transfer-Encoding: 7bit Content-Description: Undelivered-message headers Received: from BOSCOWKSTATION (unknown [210.184.55.205]) by mx1.opesware-gateway.com (Postfix) with ESMTP id 89713572D3 for [EMAIL PROTECTED]; Fri, 25 Feb 2005 18:36:42 +0800 (HKT) Message-ID: [EMAIL PROTECTED] From: Bosco Lau [EMAIL PROTECTED] To: Bosco Lau [EMAIL PROTECTED] Subject: Emailing: www.yahoo.com Date: Fri, 25 Feb 2005 18:36:02 +0800 MIME-Version: 1.0 Content-Type: multipart/related; type=multipart/alternative; boundary==_NextPart_000_0007_01C51B68.DBCE8260 X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 =_1109327810-27663-7-- /mail_source Reproduce code: --- Basically making a standard and simple call of imap_sort $sorted_array = imap_sort($mbox_stream,SORTDATE,1,SE_NOPREFETCH,,UTF-8); Expected result: returning $sorted_array = array(0); -- 0 being the msg id of the particular email Actual result: -- nothing happens waiting for eternity ... -- Edit this bug report at http://bugs.php.net/?id=32105edit=1
#32105 [NEW]: imap_sort hangs up on retrieving msg numbers
From: bosco at musehub dot com Operating system: Linux RH9 PHP version: 4.3.10 PHP Bug Type: IMAP related Bug description: imap_sort hangs up on retrieving msg numbers Description: imap_sort hangs up when retrieving a particular email message. Not sure what is in the mail header or content that causes the hang. PLEASE NOTE: the same imap_sort function call causes no problems at all for other e-mail (so far). It is only when I receive such an email when the php hangs up. mail_source Return-Path: Received: from mail01.opesware.com ([unix socket]) by mail.opesware.com (Cyrus v2.2.12-1) with LMTPA; Fri, 25 Feb 2005 18:33:48 +0800 X-Sieve: CMU Sieve 2.2 MIME-Version: 1.0 Subject: Considered UNSOLICITED BULK EMAIL from you In-Reply-To: [EMAIL PROTECTED] Message-Id: [EMAIL PROTECTED] Content-Type: multipart/report; report-type=delivery-status; boundary=--=_1109327810-27663-7 From: amavisd-new [EMAIL PROTECTED] To: [EMAIL PROTECTED] Date: Fri, 25 Feb 2005 18:36:50 +0800 (HKT) This is a multi-part message in MIME format... =_1109327810-27663-7 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 7bit Your message to: - [EMAIL PROTECTED] was considered unsolicited bulk e-mail (UBE). Subject: Emailing: www.yahoo.com Return-Path: [EMAIL PROTECTED] Delivery of the email was stopped! =_1109327810-27663-7 Content-Type: message/delivery-status Content-Disposition: inline Content-Transfer-Encoding: 7bit Content-Description: Delivery error report Reporting-MTA: dns; mx1.opesware-gateway.com Received-From-MTA: smtp; mx1.opesware-gateway.com ([127.0.0.1]) Arrival-Date: Fri, 25 Feb 2005 18:36:43 +0800 (HKT) Final-Recipient: rfc822; [EMAIL PROTECTED] Action: failed Status: 5.7.1 Diagnostic-Code: smtp; 550 5.7.1 Message content rejected, UBE, id=27663-07 Last-Attempt-Date: Fri, 25 Feb 2005 18:36:50 +0800 (HKT) =_1109327810-27663-7 Content-Type: text/rfc822-headers Content-Disposition: inline Content-Transfer-Encoding: 7bit Content-Description: Undelivered-message headers Received: from BOSCOWKSTATION (unknown [210.184.55.205]) by mx1.opesware-gateway.com (Postfix) with ESMTP id 89713572D3 for [EMAIL PROTECTED]; Fri, 25 Feb 2005 18:36:42 +0800 (HKT) Message-ID: [EMAIL PROTECTED] From: Bosco Lau [EMAIL PROTECTED] To: Bosco Lau [EMAIL PROTECTED] Subject: Emailing: www.yahoo.com Date: Fri, 25 Feb 2005 18:36:02 +0800 MIME-Version: 1.0 Content-Type: multipart/related; type=multipart/alternative; boundary==_NextPart_000_0007_01C51B68.DBCE8260 X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 =_1109327810-27663-7-- /mail_source Reproduce code: --- Basically making a standard and simple call of imap_sort $sorted_array = imap_sort($mbox_stream,SORTDATE,1,SE_NOPREFETCH,,UTF-8); Expected result: returning $sorted_array = array(0); -- 0 being the msg id of the particular email Actual result: -- nothing happens waiting for eternity ... -- Edit bug report at http://bugs.php.net/?id=32105edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=32105r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=32105r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=32105r=trysnapshot51 Fixed in CVS:http://bugs.php.net/fix.php?id=32105r=fixedcvs Fixed in release:http://bugs.php.net/fix.php?id=32105r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=32105r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=32105r=needscript Try newer version: http://bugs.php.net/fix.php?id=32105r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=32105r=support Expected behavior: http://bugs.php.net/fix.php?id=32105r=notwrong Not enough info: http://bugs.php.net/fix.php?id=32105r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=32105r=submittedtwice register_globals:http://bugs.php.net/fix.php?id=32105r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=32105r=php3 Daylight Savings:http://bugs.php.net/fix.php?id=32105r=dst IIS Stability: http://bugs.php.net/fix.php?id=32105r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=32105r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=32105r=float No Zend Extensions: http://bugs.php.net/fix.php?id=32105r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=32105r=mysqlcfg