Changeset 2540 in subversion for trunk/roundcubemail/program/lib/imap.inc


Ignore:
Timestamp:
May 26, 2009 4:50:10 AM (4 years ago)
Author:
alec
Message:
  • Support UID EXPUNGE: remove only moved/deleted messages
File:
1 edited

Legend:

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

    r2533 r2540  
    8383                - removed caching functions 
    8484                - handling connection startup response 
     85                - added UID EXPUNGE support 
    8586 
    8687********************************************************/ 
     
    18641865} 
    18651866 
    1866 function iil_C_Expunge(&$conn, $mailbox) { 
     1867function iil_C_Expunge(&$conn, $mailbox, $messages=NULL) { 
    18671868 
    18681869        if (iil_C_Select($conn, $mailbox)) { 
    18691870                $c = 0; 
    1870                 iil_PutLine($conn->fp, "exp1 EXPUNGE"); 
     1871                $command = $messages ? "UID EXPUNGE $messages" : "EXPUNGE"; 
     1872 
     1873                iil_PutLine($conn->fp, "exp1 $command"); 
    18711874                do { 
    18721875                        $line=chop(iil_ReadLine($conn->fp, 100)); 
     
    20312034 
    20322035function iil_C_Move(&$conn, $messages, $from, $to) { 
    2033     $fp = $conn->fp; 
    20342036 
    20352037    if (!$from || !$to) { 
    20362038        return -1; 
    20372039    } 
    2038     $r = iil_C_Copy($conn, $messages, $from,$to); 
     2040     
     2041    $r = iil_C_Copy($conn, $messages, $from, $to); 
     2042 
    20392043    if ($r==0) { 
    20402044        return iil_C_Delete($conn, $from, $messages); 
Note: See TracChangeset for help on using the changeset viewer.