Author Topic: Removing folder  (Read 3713 times)

Offline bizhat

  • Jr. Member
  • **
  • Posts: 10
Removing folder
« 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.



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

Quote

cd /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 user@bizhat.com 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

Offline rosali

  • Hero Member
  • *****
  • Posts: 2,533
Removing folder
« Reply #1 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.
Regards,
Rosali
__________________
MyRoundcube Project (commercial)

Offline bizhat

  • Jr. Member
  • **
  • Posts: 10
Removing folder
« Reply #2 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 ?

Offline rosali

  • Hero Member
  • *****
  • Posts: 2,533
Removing folder
« Reply #3 on: April 01, 2009, 04:06:37 PM »
No, I don't believe so. Without hacking in the source, IMO there is no chance.
Regards,
Rosali
__________________
MyRoundcube Project (commercial)