Changeset 1646 in subversion


Ignore:
Timestamp:
Aug 14, 2008 7:09:38 AM (5 years ago)
Author:
thomasb
Message:

Better fix for skipping untagged responses; should also work with long body structres (#1485261)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/program/lib/imap.inc

    r1616 r1646  
    25762576                                $line = iil_ReadLine($fp, 5000); 
    25772577                                $line = iil_MultLine($fp, $line); 
    2578                                 list(, $index, $rest) = explode(' ', $line); 
    2579                                 if ($index == $id || preg_match("/^$key/", $line)) 
     2578                                list(, $index, $cmd, $rest) = explode(' ', $line); 
     2579                                if ($cmd != 'FETCH' || $index == $id) 
    25802580                                        $result .= $line; 
    25812581                        } while (!preg_match("/^$key/", $line)); 
Note: See TracChangeset for help on using the changeset viewer.