Changeset 1616 in subversion


Ignore:
Timestamp:
Jul 31, 2008 10:48:00 AM (5 years ago)
Author:
thomasb
Message:

Ignore untagged responses when fetching BODYSTRUCTURE (patch by B. Johannessen)

File:
1 edited

Legend:

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

    r1590 r1616  
    25712571        if (iil_C_Select($conn, $folder)) { 
    25722572                $key = 'F1247'; 
    2573          
     2573 
    25742574                if (iil_PutLine($fp, "$key FETCH $id (BODYSTRUCTURE)")) { 
    25752575                        do { 
    25762576                                $line = iil_ReadLine($fp, 5000); 
    25772577                                $line = iil_MultLine($fp, $line); 
    2578                                 $result .= $line; 
     2578                                list(, $index, $rest) = explode(' ', $line); 
     2579                                if ($index == $id || preg_match("/^$key/", $line)) 
     2580                                        $result .= $line; 
    25792581                        } while (!preg_match("/^$key/", $line)); 
    25802582 
Note: See TracChangeset for help on using the changeset viewer.