Roundcube Community Forum

 

Removing folder

Started by bizhat, March 31, 2009, 01:28:20 PM

Previous topic - Next topic

bizhat

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.



The marked in red are from old squirrelmail.

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



In folders, these extra folders are not listed



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

rosali

./config/main.inc.php:


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


... set temporarilly to FALSE.
Regards,
Rosali

bizhat

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 ?

rosali

No, I don't believe so. Without hacking in the source, IMO there is no chance.
Regards,
Rosali