Hi Jasper
I was also working on this issue and tried out your solution. Unfortunately the request still hangs... I did not yet find the reason for this problem but please note the following:
(iil_ModFlag) is called as when opening the message. The only difference when opening the message is, that RoundCube loaded the message from the server before marking it as read (with the same socket connection). 2) The app does not hang when marking the message as read but when trying to reload the message headers afterwards (iil_C_FetchHeaders).
To avoid this problem, I close the connection to the server, after setting the flag and re-open it for loading the message headers. If doing this, RoundCube won't hang anymore when opening unread messages but the problem is not solved completely.
Just unpack the attached archive and replace the rcube_imap.inc. Please post your experience with this patch back to the list.
Thomas
2005/10/11, Jasper Slits jasper@insiders.nl:
Kennedy, Richard (Aventure Media) wrote:
Doesn't seem to work here? Tried the below fix, and mail wouldn't open (timed out), tried it again with the dirty fix for show.inc and it loaded again.
*cut*
Now the onlist reply ->
Uhm, I also modified iil_Readline a bit as I suspected the problem was there ->
function iil_ReadLine($fp, $size){ $line=""; if ($fp){ do{ $buffer = fgets($fp, 1024); $endID = strlen($buffer) - 1; $end = ($buffer[$endID] == "\n"); $line.=$buffer; }while(!$end); } return $line; }
It seems to be older version of iil_Readline but it has the same functionality. Can you give that a try?
Jasper