Roundcube Community Forum

Release Support => Pending Issues => Topic started by: websolve on January 23, 2009, 08:17:51 AM

Title: Creating SubFolders
Post by: websolve on January 23, 2009, 08:17:51 AM
When trying to create subfolders RoundCube simply tells me that an error occurred while saving.

We looked at the server file and when creating the folders it is creating them as files, which is fine but when we need to add sub folders I thought they needed to be directories. I only assume this because when we do the same thing in Squirrel Mail and tell it that we want to be able to create subfolders in the folder it creates it as a directory!

Any help would be appreciated!
Title: Creating SubFolders
Post by: Julius Caesar on January 23, 2009, 09:31:40 AM
That's correct. You can only have subfolders (or submailboxes), the parent mailbox has to be a folder on your IMAP-server. The mbox-format create files and does not allow subfolders, maildir creates folders and allows subfolders.

Please check the configuration of your IMAP-server
Title: Creating SubFolders
Post by: websolve on January 23, 2009, 09:34:01 AM
Therefore how is squirrel mail able to create subfolders?
Title: Creating SubFolders
Post by: Julius Caesar on January 23, 2009, 09:37:28 AM
Quote from: websolve;16615
Therefore how is squirrel mail able to create subfolders?

Does it actually create a subfolder, or just displays it that way? You should be able to check that when connecting to that server using IMAP (i.e. with thunderbird)? Or on the server itself when you have shell access
Title: Creating SubFolders
Post by: websolve on January 23, 2009, 09:42:20 AM
Have checked in Outlook and it is actually creating the sub folders.
Title: Creating SubFolders
Post by: Julius Caesar on January 23, 2009, 09:45:32 AM
What IMAP-server is being used?
Title: Creating SubFolders
Post by: websolve on January 23, 2009, 09:50:14 AM
How would I check this? Sorry I am not very good with servers! :)
Title: Creating SubFolders
Post by: Julius Caesar on January 23, 2009, 09:56:28 AM
Quote from: websolve;16619
How would I check this? Sorry I am not very good with servers! :)

telnet servername 143
Title: Creating SubFolders
Post by: websolve on January 23, 2009, 09:58:35 AM
Have got DirectAdmin installed, can I get the info from here?
Title: Creating SubFolders
Post by: websolve on January 23, 2009, 10:12:41 AM
Can't seem to do this, can I find out from DirectAdmin?
Title: Creating SubFolders
Post by: Julius Caesar on January 23, 2009, 10:14:41 AM
Quote from: websolve;16621
Have got DirectAdmin installed, can I get the info from here?

I'm not familiar with DirectAdmin. Just checked the demo. You can see some information from

AdminTools > System Information
AdminTools > Service Monitor

Check for dovecot, cyrus or courier
Title: Creating SubFolders
Post by: websolve on January 23, 2009, 10:17:32 AM
Any of this any good?

Processor Name   Intel(R) Xeon(TM) CPU 3.20GHz
Vendor ID   GenuineIntel
Processor Speed (MHz)   3192.332
Processor Name   Intel(R) Xeon(TM) CPU 3.20GHz
Vendor ID   GenuineIntel
Processor Speed (MHz)   3192.332
Processor Name   Intel(R) Xeon(TM) CPU 3.20GHz
Vendor ID   GenuineIntel
Processor Speed (MHz)   3192.332
Processor Name   Intel(R) Xeon(TM) CPU 3.20GHz
Vendor ID   GenuineIntel
Processor Speed (MHz)   3192.332
Total Memory   3617740 kB
Free Memory   814844 kB
Total Swap Memory   1975984 kB
Free Swap Memory   1971560 kB
System Uptime   51 Days, 3 Hours and 28 Minutes
Apache 1.3.37   Running
DirectAdmin    Running
Exim 4.54   Running
MySQL 4.1.10   Running
Named 9.3.4    Running
ProFTPd 1.3.0    Running
sshd    Running
vm-Pop3d 1.1.7f-T6-DA    Running
Title: Creating SubFolders
Post by: Julius Caesar on January 23, 2009, 10:26:32 AM
Quote from: websolve;16624
Any of this any good?

vm-Pop3d 1.1.7f-T6-DA    Running


This is a POP3-server. From what I've read on the internet (http://www.directadmin.com/forum/showthread.php?p=96984) imap is served using xinetd.

Maybe RC can't handle that as good as Outlook or Squirrelmail can.
Title: Creating SubFolders
Post by: websolve on January 23, 2009, 10:45:43 AM
Damn, that's a pain, I really want to use RC but this is quite a major problem!

Thank you for all of your help
Title: Creating SubFolders
Post by: websolve on January 26, 2009, 09:15:04 AM
Wondering if anyone else had any ideas on a solution for this problem?
Title: Re: Creating SubFolders
Post by: Erudd on July 02, 2012, 11:34:24 AM
Hi, I'm bumping this thread because I have the save problem.

Every time I try to create a subfolder it says that "An error occurred while saving".

I've checked my dovecot.conf file but I'm completely new to this and I have no idea how to enable maildir.

I tried uncommenting the "mail_location = maildir:~/Maildir" line, but that didn't work.

Any help would be greatly appreciated, thanks!
Title: Re: Creating SubFolders
Post by: oldschool on July 02, 2012, 11:09:05 PM
Hi, I'm bumping this thread because I have the save problem.

Every time I try to create a subfolder it says that "An error occurred while saving".

I've checked my dovecot.conf file but I'm completely new to this and I have no idea how to enable maildir.

I tried uncommenting the "mail_location = maildir:~/Maildir" line, but that didn't work.

Any help would be greatly appreciated, thanks!


Hi!

This is not really a roundcube prob.
Google for a dovecot template/setup with maildir support.


Rgds.
Title: Re: Creating SubFolders
Post by: Erudd on July 03, 2012, 09:48:34 AM
Hi,

I did read quite a lot of documentation and tutorials before posting here, but what I found today finally did the trick.

The tutorial is here: http://www.mill-yard.com/2011/06/centos-dovecot-sendmail-imap-and-maildir/

For anyone having the same problem using Dovecot with Sendmail/Procmail:

1) Edit your Dovecot settings. You can do this either by editing your /etc/dovecot.conf file directly, or through your Webmin, in Servers > Dovecot IMAP/POP3 Server > Edit the configuration file.

Find this line:
Code: [Select]
#mail_location =
Replace it with:
Code: [Select]
mail_location = maildir:~/Maildir
(Make sure you removed the "#")

2) Stop your Dovecot server then restart it, or else the changes won't be applied. It only takes a few seconds.

3) Edit Procmail settings. Either by adding the 2 following lines at the very beginning of the /etc/procmailrc file directly:
Code: [Select]
ORGMAIL=$HOME/Maildir/
DEFAULT=$HOME/Maildir/

Or through your Webmin, in Servers>Procmail Mail Filter, click on Add new variable setting, then enter the following:

Variable name: ORGMAIL
Value: $HOME/Maildir/
Save.

Then click on Add new variable setting again and enter:

Variable name: DEFAULT
Value: $HOME/Maildir/
Save.

All done! You can now create subfolders in your IMAP account.

Note: Your e-mails may no longer appear on your account, because they are still in the "mail" directory instead of the "Maildir" directory at the root of your username folder. I believe the link above provides a way to transfer old e-mails to the new folder.
Title: Re: Creating SubFolders
Post by: oldschool on July 03, 2012, 10:31:11 AM
Hi!

Nice to see you found a solution.
:D

I use postfix with courier only. So my help is very limited...



Rgds.