Changeset 2377 in subversion


Ignore:
Timestamp:
Apr 8, 2009 2:21:43 AM (4 years ago)
Author:
alec
Message:
  • Fix opening attachment marks message as read (#1485803)
Location:
trunk/roundcubemail
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/CHANGELOG

    r2376 r2377  
    22=========================== 
    33 
     4- Fix opening attachment marks message as read (#1485803) 
    45- Fix 'temp_dir' does not support relative path under Windows (#1484529) 
    56- Fix "Initialize Database" button missing from installer (#1485802) 
  • trunk/roundcubemail/program/lib/imap.inc

    r2331 r2377  
    24342434        // format request 
    24352435        foreach($parts as $part) 
    2436                 $peeks[] = "BODY[$part.MIME]"; 
     2436                $peeks[] = "BODY.PEEK[$part.MIME]"; 
    24372437         
    24382438        $request = "$key FETCH $id (" . implode(' ', $peeks) . ')'; 
     
    24472447                $line = iil_MultLine($fp, $line); 
    24482448 
    2449                 if (preg_match('/BODY\[([0-9\.]+)\.MIME\]/', $line, $matches)) { 
     2449                if (preg_match('/BODY\.PEEK\[([0-9\.]+)\.MIME\]/', $line, $matches)) { 
    24502450                        $idx = $matches[1]; 
    2451                         $result[$idx] = preg_replace('/^(\* '.$id.' FETCH \()?\s*BODY\['.$idx.'\.MIME\]\s+/', '', $line); 
     2451                        $result[$idx] = preg_replace('/^(\* '.$id.' FETCH \()?\s*BODY\.PEEK\['.$idx.'\.MIME\]\s+/', '', $line); 
    24522452                        $result[$idx] = trim($result[$idx], '"'); 
    24532453                        $result[$idx] = rtrim($result[$idx], "\t\r\n\0\x0B"); 
Note: See TracChangeset for help on using the changeset viewer.