Stephan von Krawczynski
2013-Apr-08 15:51 UTC
[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
Steffen Kaiser
2013-Apr-09 14:50 UTC
[Dovecot] How to see folders/subfolders/emails through imap
-----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-----
Robert Schetterer
2013-Apr-09 16:58 UTC
[Dovecot] How to see folders/subfolders/emails through imap
Am 09.04.2013 16:50, schrieb Steffen Kaiser:> b) you mentioned "thunderbird", which does not use maildir to my > knowledgehttp://jaisejames.wordpress.com/2012/03/15/to-activate-maildir-in-thunderbird/ 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
Timo Sirainen
2013-Apr-09 18:17 UTC
[Dovecot] How to see folders/subfolders/emails through imap
On 8.4.2013, at 18.51, Stephan von Krawczynski <skraw at 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.
Stephan von Krawczynski
2013-Apr-09 20:07 UTC
[Dovecot] How to see folders/subfolders/emails through imap
On Tue, 09 Apr 2013 21:19:25 +0200 Steffen <skdovecot at 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 at 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
Stephan von Krawczynski
2013-Apr-10 08:21 UTC
[Dovecot] How to see folders/subfolders/emails through imap
On Tue, 9 Apr 2013 22:07:01 +0200 Stephan von Krawczynski <skraw at ithnet.com> wrote:> On Tue, 09 Apr 2013 21:19:25 +0200 > Steffen <skdovecot at 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 at 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