Author Topic: [RC2] Maildir - No Folders visible  (Read 8591 times)

Offline STiAT

  • Newbie
  • *
  • Posts: 8
[RC2] Maildir - No Folders visible
« on: July 24, 2008, 12:36:47 PM »
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/test@grabler.net
The Directory looks as follows:
Code: [Select]
.
./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:
Code: [Select]
$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/test@grabler.net/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:
Code: [Select]
cd /home/vmailer/grabler.net/test@grabler.net
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
Code: [Select]
test@grabler.net/Maildir
test@grabler.net/Trash
test@grabler.net/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
« Last Edit: July 24, 2008, 02:34:47 PM by STiAT »

Offline dano

  • Full Member
  • ***
  • Posts: 124
[RC2] Maildir - No Folders visible
« Reply #1 on: July 24, 2008, 04:47:59 PM »
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.

Offline STiAT

  • Newbie
  • *
  • Posts: 8
[RC2] Maildir - No Folders visible
« Reply #2 on: July 25, 2008, 06:43:01 AM »
You're my personal hero ;-).

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

Thanks mate!
// STi