Ignore:
Timestamp:
Oct 15, 2007 3:55:29 AM (6 years ago)
Author:
robin
Message:

Re-subscribe folders after renaming parent folder.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/program/include/rcube_imap.inc

    r857 r865  
    17011701    if (strlen($abs_name)) 
    17021702      $result = iil_C_RenameFolder($this->conn, $mailbox, $abs_name); 
     1703 
     1704    // check if mailbox children are subscribed 
     1705    foreach ($a_subscribed as $c_subscribed) 
     1706      if (preg_match('/^'.preg_quote($mailbox.$this->delimiter).'/', $c_subscribed)) 
     1707        { 
     1708        iil_C_UnSubscribe($this->conn, $c_subscribed); 
     1709        iil_C_Subscribe($this->conn, preg_replace('/^'.preg_quote($mailbox).'/', $abs_name, $c_subscribed)); 
     1710        } 
    17031711 
    17041712    // clear cache 
Note: See TracChangeset for help on using the changeset viewer.