Roundcube Community Forum

Release Support => Release Discussion => Topic started by: bizhat on March 31, 2009, 01:28:20 PM

Title: Removing folder
Post by: bizhat on March 31, 2009, 01:28:20 PM
Hi,

I was using squirrelmail and now moved to roundcube.

I have set to create new folders when user login, so now, all users have old and new Trash, Sent boxes, i have set to create new folders as with old folders, mails will not get send to Trash when mail deleted.

(http://nancy.bizhat.com/rc1.jpg)

The marked in red are from old squirrelmail.

When i go to personal settings, these folders are shows as children fro INBOX

(http://nancy.bizhat.com/rc2.jpg)

In folders, these extra folders are not listed

(http://nancy.bizhat.com/rc3.jpg)

I have deleted old mail box folders from file system with following command

Quotecd /home/vmail
find ./ -name '.INBOX.Drafts' -type d |xargs rm -rf
find ./ -name '.INBOX.Sent' -type d |xargs rm -rf
find ./ -name '.INBOX.new' -type d |xargs rm -rf

When i login to imap of same mailbox, the folder is not shown

Quote[root@server52 ~]# telnet 0 143
Trying 0.0.0.0...
Connected to 0 (0.0.0.0).
Escape character is '^]'.
* OK Dovecot ready.
a login [email protected] password
a OK Logged in.
a list "" "*"
* LIST (\HasNoChildren) "." "Drafts"
* LIST (\HasNoChildren) "." "Junk"
* LIST (\HasNoChildren) "." "Sent"
* LIST (\HasNoChildren) "." "Trash"
* LIST (\HasNoChildren) "." "INBOX"
a OK List completed.
a logout
* BYE Logging out
a OK Logout completed.
Connection closed by foreign host.
[root@server52 ~]#

How do i remove the extra folders shown in inbox ?

Thanks,

Yujin
Title: Removing folder
Post by: rosali on April 01, 2009, 01:06:11 AM
./config/main.inc.php:


// protect the default folders from renames, deletes, and subscription changes
$rcmail_config['protect_default_folders'] = TRUE;


... set temporarilly to FALSE.
Title: Removing folder
Post by: bizhat on April 01, 2009, 02:00:15 PM
Thanks rosali, it workd, i am able to rename/delete the folder.

The problem is name of the folder is Trash and roundcube just disable deleting of any folder that have the name of default folders. Is there anyway top ignore childrens of INBOX ?
Title: Removing folder
Post by: rosali on April 01, 2009, 04:06:37 PM
No, I don't believe so. Without hacking in the source, IMO there is no chance.