Roundcube Community Forum

 

[RC2] Maildir - No Folders visible

Started by STiAT, July 24, 2008, 12:36:47 PM

Previous topic - Next topic

STiAT

Hello,

-- A word before --
It could be, that I've some general Problem understanding the architecture which I should use.
Allthough, I have the following setup:
dovecot, postfix, roundcube
For storage, Maildir is used (not mbox)

Now, roundcube looks best of all tools i tried, and I want to keep it. But I'm a "bit" in struggle with the folders (Trash, Drafts, Sent).
As far as I know, those are (or should be) handled by the IMAP Server. Allthough, the Server itself does not need them, and the interface just "moves" the mails around. Since they're not necessary for IMAP, they're not automatically created by dovecot.


-- Problem Description --
My "inbox", or IMAP folder located in /home/vmailer/grabler.net/[email protected]
The Directory looks as follows:
.
./dovecot.index.cache
./dovecot.index.log
./new
./dovecot.index
./cur
./cur/1216917094.V801I164010M461283.ggrabler.xenway.de:2,
./cur/1216916902.V801I164018M603190.ggrabler.xenway.de:2,
./subscriptions
./dovecot-uidlist
./tmp


Now, so far so fine. I need the Trash and so on, configured in roundcube:
$rcmail_config['default_imap_folders'] = array('INBOX', 'Drafts', 'Sent', 'Junk', 'Trash');
$rcmail_config['create_default_folders'] = TRUE;


Allthough, no folders are created on login.
The question is:
  • How are folders created? By a system call, or IMAP interaction?
  • Should the Folders Pre-Exist for roundcube to recognize them?
  • If so, is there any way to automate this?
  • Could it be possible, that I'd need an other abstraction (like /home/vmailer/grabler.net/[email protected]/INBOX|Trash|Sent|Junk)?

I tried a bit further, even when I don't know how the folders are expected:
I created the following folder structure, and hoped roundcube will find them:
cd /home/vmailer/grabler.net/[email protected]
mkdir -p .Drafts/{cur,new,tmp}
mkdir -p .Trash/{cur,new,tmp}
mkdir -p .Sent/{cur,new,tmp}
mkdir -p .Junk/{cur,new,tmp}
chown -R vmailer.vmail *


To be true, without any result. The dovecot documentation tells me, that "standard" is ".Trash" and not "Trash". Allthough, I can't confirm that.
Maybe the structure should be something like
[email protected]/Maildir
[email protected]/Trash
[email protected]/Sent
...


-- Error Logs--
The error logs do not show any information about those things failing or succeeding. Not the mail log, and not the roundcube error log.

Kind regards,
// STi

dano

Hello STi,

Yes, Roundcube should create those folders on first login.  I would have expected you would see an error when it couldn't create them though.

Have you checked your imap_root in the main.inc.php config file to see what it's set to?

// only list folders within this path
$rcmail_config['imap_root'] = '';

Sometimes this has to be set to like 'Inbox' or 'Inbox.' in order to work.

Not sure that that's the fix but it's something to look at anyways.

STiAT

You're my personal hero ;-).

Setting $rcmail_config['imap_root'] = 'INBOX'; solved my problem.

Thanks mate!
// STi