Changeset 2540 in subversion
- Timestamp:
- May 26, 2009 4:50:10 AM (4 years ago)
- Location:
- trunk/roundcubemail
- Files:
-
- 3 edited
-
CHANGELOG (modified) (1 diff)
-
program/include/rcube_imap.php (modified) (3 diffs)
-
program/lib/imap.inc (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/roundcubemail/CHANGELOG
r2538 r2540 2 2 =========================== 3 3 4 - Support UID EXPUNGE: remove only moved/deleted messages 4 5 - Add drag cancelling with ESC key (#1484344) 5 6 - Support initial identity name from virtuser_query (#1484003) -
trunk/roundcubemail/program/include/rcube_imap.php
r2505 r2540 1630 1630 if (!rcmail::get_instance()->config->get('flag_for_deletion', false)) 1631 1631 { 1632 $this->_expunge($from_mbox, FALSE );1632 $this->_expunge($from_mbox, FALSE, $a_uids); 1633 1633 $this->_clear_messagecount($from_mbox); 1634 1634 $this->_clear_messagecount($to_mbox); … … 1689 1689 if ($deleted) 1690 1690 { 1691 $this->_expunge($mailbox, FALSE );1691 $this->_expunge($mailbox, FALSE, $a_uids); 1692 1692 $this->_clear_messagecount($mailbox); 1693 1693 unset($this->uid_id_map[$mailbox]); … … 1769 1769 * 1770 1770 * @see rcube_imap::expunge() 1771 * @access private 1772 */ 1773 function _expunge($mailbox, $clear_cache=TRUE) 1774 { 1775 $result = iil_C_Expunge($this->conn, $mailbox); 1771 * @param string Mailbox name 1772 * @param boolean False if cache should not be cleared 1773 * @param string List of UIDs to remove, separated by comma 1774 * @return boolean True on success 1775 * @access private 1776 */ 1777 function _expunge($mailbox, $clear_cache=TRUE, $uids=NULL) 1778 { 1779 if ($uids && $this->get_capability('UIDPLUS')) 1780 $a_uids = is_array($uids) ? join(',', $uids) : $uids; 1781 else 1782 $a_uids = NULL; 1783 1784 $result = iil_C_Expunge($this->conn, $mailbox, $a_uids); 1776 1785 1777 1786 if ($result>=0 && $clear_cache) -
trunk/roundcubemail/program/lib/imap.inc
r2533 r2540 83 83 - removed caching functions 84 84 - handling connection startup response 85 - added UID EXPUNGE support 85 86 86 87 ********************************************************/ … … 1864 1865 } 1865 1866 1866 function iil_C_Expunge(&$conn, $mailbox ) {1867 function iil_C_Expunge(&$conn, $mailbox, $messages=NULL) { 1867 1868 1868 1869 if (iil_C_Select($conn, $mailbox)) { 1869 1870 $c = 0; 1870 iil_PutLine($conn->fp, "exp1 EXPUNGE"); 1871 $command = $messages ? "UID EXPUNGE $messages" : "EXPUNGE"; 1872 1873 iil_PutLine($conn->fp, "exp1 $command"); 1871 1874 do { 1872 1875 $line=chop(iil_ReadLine($conn->fp, 100)); … … 2031 2034 2032 2035 function iil_C_Move(&$conn, $messages, $from, $to) { 2033 $fp = $conn->fp;2034 2036 2035 2037 if (!$from || !$to) { 2036 2038 return -1; 2037 2039 } 2038 $r = iil_C_Copy($conn, $messages, $from,$to); 2040 2041 $r = iil_C_Copy($conn, $messages, $from, $to); 2042 2039 2043 if ($r==0) { 2040 2044 return iil_C_Delete($conn, $from, $messages);
Note: See TracChangeset
for help on using the changeset viewer.
