[Dovecot] How to see folders/subfolders/emails through imap
Hello all,
I am trying to do something very simple - at least thats what I thought. I have some fs, it contains folders and subfolders with email files ordered like maildir. Now I try to set up dovecot on top simply to let some imap account watch these email files. But I cannot see any folders at all. I can create new folders and see them, but I cannot create subfolders as subdirs like "folder/subfolder". Instead I get "folder.subfolder" dirs on the fs. I tried to set the separator to "/", but that does not help at all.
Is there some easy way to configure dovecot to display:
<somedir>/<folder1>/<subfolder1>/new/files... <subfolder2>/new/files... <subfolder3>/new/files...
according to fs layout on some imap-client (like thunderbird)?
-- Regards, Stephan
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Mon, 8 Apr 2013, Stephan von Krawczynski wrote:
I am trying to do something very simple - at least thats what I thought. I have some fs, it contains folders and subfolders with email files ordered like maildir. Now I try to set up dovecot on top simply to let some imap account watch these email files. But I cannot see any folders at all. I can create new folders and see them, but I cannot create subfolders as subdirs like "folder/subfolder". Instead I get "folder.subfolder" dirs on the fs. I tried to set the separator to "/", but that does not help at all.
Is there some easy way to configure dovecot to display:
<somedir>/<folder1>/<subfolder1>/new/files... <subfolder2>/new/files... <subfolder3>/new/files...
according to fs layout on some imap-client (like thunderbird)?
Well, first, simply explain what you mean with "email files".
a) you mentioned "maildir", so simply look at http://wiki2.dovecot.org/MailLocation/Maildir "Directory layout" this would also fit your example, IMHO.
b) you mentioned "thunderbird", which does not use maildir to my knowledge, but mbox, so simply look at http://wiki2.dovecot.org/MailLocation/mbox
You might want to place control files somewhere else, see CONTROL= and INDEX=.
Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux)
iQEVAwUBUWQqwF3r2wJMiz2NAQKqYwgAwFZzOxZS5Dx+zP4IxPy/KsirUmVRhldp /fVbWtRHpqL2Nq7yuAnsgKUA3WpC5AvEhTBW49fC77GEbC9hHCJGZTQevmGsVlNH xGUS0G2A9JEkv1OJZV67LU5I3+0CgDi5hTwGd9cEk34llNHbiJoBnweG6MEIJ4jh PTKtcBG/WdU0LPxZUE0VvbVfW6t5Kbml7IFAiLqS3uQc5NE5IM3KfjWUom8ZcCQ/ Zo0BpBbHdfKTyHc9wSKwiN+0SFCVHn/Fx1n2coiAXpq0QuCINP63Fiss5BbYFi3e mkEXk7VUiosa5OnXq8RX151/nv0mSjglwlAGgE7olKqdwCyaW5V0LQ== =itDf -----END PGP SIGNATURE-----
On Tue, 9 Apr 2013 16:50:40 +0200 (CEST) Steffen Kaiser <skdovecot@smail.inf.fh-brs.de> wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Mon, 8 Apr 2013, Stephan von Krawczynski wrote:
I am trying to do something very simple - at least thats what I thought. I have some fs, it contains folders and subfolders with email files ordered like maildir. Now I try to set up dovecot on top simply to let some imap account watch these email files. But I cannot see any folders at all. I can create new folders and see them, but I cannot create subfolders as subdirs like "folder/subfolder". Instead I get "folder.subfolder" dirs on the fs. I tried to set the separator to "/", but that does not help at all.
Is there some easy way to configure dovecot to display:
<somedir>/<folder1>/<subfolder1>/new/files... <subfolder2>/new/files... <subfolder3>/new/files...
according to fs layout on some imap-client (like thunderbird)?
Well, first, simply explain what you mean with "email files".
a) you mentioned "maildir", so simply look at http://wiki2.dovecot.org/MailLocation/Maildir "Directory layout" this would also fit your example, IMHO.
Ok, I thought the setup was pretty clear, but let me give more details. I have _no_ problem with understanding the several maildir formats, I am here using maildir (not ++). LAYOUT=fs therefore. My expectation was that directories would be shown as folders through imap. But they are in fact not shown at all, neither in thunderbird nor in sylpheed (to name another client).
b) you mentioned "thunderbird", which does not use maildir to my knowledge, but mbox, so simply look at http://wiki2.dovecot.org/MailLocation/mbox
You might want to place control files somewhere else, see CONTROL= and INDEX=.
Uh? thunderbird is a client, the client should not bother at all about maildir or mbox on the server.
Again, assume I have a mailserver. The MTA produces directories like:
<spooldir>/<folder>/<subfolder1>/new/<some-email-file> ... /<subfolder2>/new/<another-email-file> ... ... /<subfolderX>/new/<again-some-mail-file>
(clearly a maildir-alike format)
Now on this server I want dovecot to hand this layout to some email-client (on another box, lets say some wind*ws), thunderbird if possible, via imap. That's about all. I tried to tell dovecot that <spooldir> is mail_location=maildir:<spooldir>:LAYOUT=fs Yes, there is only _one_ user. My expectation was to see <folder> as imap-folder but I see exactly zero. If I try to create a new folder from thunderbird side a directory is created inside <spooldir>, so generally dovecot understood the idea, only directories that are already there are not shown.
-- Regards, Stephan
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Stephan von Krawczynski wrote:
On Tue, 9 Apr 2013 16:50:40 +0200 (CEST) Steffen Kaiser <skdovecot@smail.inf.fh-brs.de> wrote:
I tried to tell dovecot that <spooldir> is mail_location=maildir:<spooldir>:LAYOUT=fs
Works for me, Dovecot v2.2RC3
mail_location = maildir:/home/fs:LAYOUT=fs mkdir -p /home/fs/foo/{tmp,cur,new} mkdir -p /home/fs/foo/bar/{tmp,cur,new}
telnet localhost 143 0 login nnn nnn 1 list "" "*"
- LIST (\HasChildren) "/" foo
- LIST (\HasNoChildren) "/" foo/bar
- LIST (\HasNoChildren) "/" INBOX 1 OK List completed.
Steffen -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (Darwin) Comment: Using GnuPG with undefined - http://www.enigmail.net/
iQEVAwUBUWRpvF3r2wJMiz2NAQLtngf9GoYZwASU+hp1P39ZIpoRELuz2U+YNl1f jeD/qfkXS8tWjfGzI18vVP1Xid65SiUfHm84wA5x/8rZfLo0oWvBekZTAV044Ndw ernCsbJG4sotJ0MS6rYRIUmO/wbpFAU4OW7N8I/e0pVZlgrv1ncD1cBSGsbN8FR8 DTlOqOGcxcrrcGBAVSdqqVU14jdrABhgPiWlNpOYBUV9qWATiOGaQsH47hDVAWT7 m5a7l2wVpAhVOkqaZIiYDeSA+7YJs7HTJYFuioVw04PW1nzrdnLBCR31DOCmoPlX 2ZsOeCP4e+Bnl0XsN6AG4AjvmRgMeFRrxMIRdR03WCk9VhBKIjbjAw== =mHIt -----END PGP SIGNATURE-----
On Tue, 09 Apr 2013 21:19:25 +0200 Steffen <skdovecot@smail.inf.fh-brs.de> wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Stephan von Krawczynski wrote:
On Tue, 9 Apr 2013 16:50:40 +0200 (CEST) Steffen Kaiser <skdovecot@smail.inf.fh-brs.de> wrote:
I tried to tell dovecot that <spooldir> is mail_location=maildir:<spooldir>:LAYOUT=fs
Works for me, Dovecot v2.2RC3
mail_location = maildir:/home/fs:LAYOUT=fs mkdir -p /home/fs/foo/{tmp,cur,new} mkdir -p /home/fs/foo/bar/{tmp,cur,new}
telnet localhost 143 0 login nnn nnn 1 list "" "*"
- LIST (\HasChildren) "/" foo
- LIST (\HasNoChildren) "/" foo/bar
- LIST (\HasNoChildren) "/" INBOX 1 OK List completed.
Ok, I solved it thanks to your striking example. The problem was: the clients remembered something from earlier sessions where the dovecot config was probably not correct. I removed the mailbox from the client and recreated it and now I see the correct list of folders. Thanks a lot for this hint.
-- Regards, Stephan
On Tue, 9 Apr 2013 22:07:01 +0200 Stephan von Krawczynski <skraw@ithnet.com> wrote:
On Tue, 09 Apr 2013 21:19:25 +0200 Steffen <skdovecot@smail.inf.fh-brs.de> wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Stephan von Krawczynski wrote:
On Tue, 9 Apr 2013 16:50:40 +0200 (CEST) Steffen Kaiser <skdovecot@smail.inf.fh-brs.de> wrote:
I tried to tell dovecot that <spooldir> is mail_location=maildir:<spooldir>:LAYOUT=fs
Works for me, Dovecot v2.2RC3
mail_location = maildir:/home/fs:LAYOUT=fs mkdir -p /home/fs/foo/{tmp,cur,new} mkdir -p /home/fs/foo/bar/{tmp,cur,new}
telnet localhost 143 0 login nnn nnn 1 list "" "*"
- LIST (\HasChildren) "/" foo
- LIST (\HasNoChildren) "/" foo/bar
- LIST (\HasNoChildren) "/" INBOX 1 OK List completed.
Ok, I solved it thanks to your striking example. The problem was: the clients remembered something from earlier sessions where the dovecot config was probably not correct. I removed the mailbox from the client and recreated it and now I see the correct list of folders. Thanks a lot for this hint.
Sorry, it seems not that easy. I had to find out that sylpheed works correctly now, but thunderbird does not show anything, just like before. Is there a way to log all imap commands and replies?
-- Regards, Stephan
On 10.4.2013, at 11.21, Stephan von Krawczynski <skraw@ithnet.com> wrote:
Sorry, it seems not that easy. I had to find out that sylpheed works correctly now, but thunderbird does not show anything, just like before. Is there a way to log all imap commands and replies?
http://wiki2.dovecot.org/Debugging/Rawlog
Either you have set a namespace prefix to Thunderbird, or it's listing only subscribed folders and you don't have any subscriptions.
On Wed, 10 Apr 2013 11:36:24 +0300 Timo Sirainen <tss@iki.fi> wrote:
On 10.4.2013, at 11.21, Stephan von Krawczynski <skraw@ithnet.com> wrote:
Sorry, it seems not that easy. I had to find out that sylpheed works correctly now, but thunderbird does not show anything, just like before. Is there a way to log all imap commands and replies?
http://wiki2.dovecot.org/Debugging/Rawlog
Either you have set a namespace prefix to Thunderbird, or it's listing only subscribed folders and you don't have any subscriptions.
You are right. In the meantime I found out that the default config in thunderbird lists only subscribed folders. Changing this setting makes it work as expected. Thank you for your hint.
-- Regards, Stephan
Am 09.04.2013 16:50, schrieb Steffen Kaiser:
b) you mentioned "thunderbird", which does not use maildir to my knowledge
http://jaisejames.wordpress.com/2012/03/15/to-activate-maildir-in-thunderbir...
Best Regards MfG Robert Schetterer
-- [*] sys4 AG
http://sys4.de, +49 (89) 30 90 46 64 Franziskanerstraße 15, 81669 München
Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263 Vorstand: Patrick Ben Koetter, Axel von der Ohe, Marc Schiffbauer Aufsichtsratsvorsitzender: Joerg Heidrich
On 8.4.2013, at 18.51, Stephan von Krawczynski <skraw@ithnet.com> wrote:
I am trying to do something very simple - at least thats what I thought. I have some fs, it contains folders and subfolders with email files ordered like maildir. Now I try to set up dovecot on top simply to let some imap account watch these email files. But I cannot see any folders at all. I can create new folders and see them, but I cannot create subfolders as subdirs like "folder/subfolder". Instead I get "folder.subfolder" dirs on the fs. I tried to set the separator to "/", but that does not help at all.
You mentioned you set LAYOUT=fs, but the above sounds like you're still using Maildir++. Set mail_debug=yes and see what it says.
participants (5)
-
Robert Schetterer
-
Steffen
-
Steffen Kaiser
-
Stephan von Krawczynski
-
Timo Sirainen