ID:               19716
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
-Status:           Open
+Status:           Feedback
 Bug Type:         IMAP related
 Operating System: linux
 PHP Version:      4.2.3
 New Comment:

Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php

Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.




Previous Comments:
------------------------------------------------------------------------

[2002-10-14 04:46:31] [EMAIL PROTECTED]

I've tried the snapshot today. The formerly included script still
returns errors and doesn't finish it's running. (eg. HTML code after
the script never shows).
Apache error log says:

[Mon Oct 14 12:22:15 2002] [notice] Apache/1.3.14 (Unix) 
(Red-Hat/Linux) PHP/4.3.0-dev configured -- resuming normal operations
[Mon Oct 14 12:22:45 2002] [notice] child pid 14979 exit signal
Segmentation fault (11)

------------------------------------------------------------------------

[2002-10-12 10:32:28] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php4-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-latest.zip



------------------------------------------------------------------------

[2002-10-03 01:08:36] [EMAIL PROTECTED]

I installed c-client from IMAP 2002 RC6.

------------------------------------------------------------------------

[2002-10-02 10:50:02] [EMAIL PROTECTED]

What c-client version you have? 


------------------------------------------------------------------------

[2002-10-02 08:26:09] [EMAIL PROTECTED]

We are using Lotus Domino 5.0.11 as our IMAP server and it seems to
work all right with other clients (like Mozilla).
However when we run the script below it only returns correctly 7 oldest
messages. All other messages get the following error message: Bad
message number in /home/httpd/html/mail/messages.php
count returns 61 messages. It happens in other folders than INBOX too.

PHP was compiled using the following parameters:
./configure  --with-mysql --with-apxs=/usr/sbin/apxs --with-imap
--enable-exif --with-kerberos --with-zlib --with-zlib-dir=/usr/lib



<?php


echo "User: ".$_SERVER['PHP_AUTH_USER']."<br><br>";
$link=imap_open("{localhost/imap}INBOX",$_SERVER['PHP_AUTH_USER'],$_SERVER['PHP_AUTH_PW']);


$sorted_array=imap_sort($link,SORTDATE,1);
$headers=imap_headers($link); 


        echo "<br><b>Your messages (".count($sorted_array).")</b><br><hr>";
        for ($x = 1;$x < count($sorted_array); $x++) {
                $msgnum=next($sorted_array);
                $header=imap_header($link,$msgnum, 80,80);
                echo "<a href=\"view.php?num=$msgnum\">$header->fromaddress:
".$header->subject."</a> (ID: $msgnum)<br>";

        }

 

imap_close($link);

?> 


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=19716&edit=1

Reply via email to