On Date: Sun, 17 Jul 2016 12:24:04 +0200 Luigi Rosa <lists at luigirosa.com> wrote:> > Peter Chiochetti wrote on 17/07/2016 11:01: > > > With Maildir and path separator "." one can have incomplete paths: eg. > > bpatterson.INBOX.2011 will say that there is 2011 within INBOX within bpatterson > > -- while it is possible, that both bpatterson and bpatterson.INBOX do not exist! > > Thunderbird will render the missing folders gray in the UI, you probably cannot > > subscribe to those, even from the subscribe dialogue. You should be able to > > create them though. > > That is correct. > > If you want to create the "path" Somename/Foo/Bar/Baz (as seen by the IMAP > client), even if only Somename and Baz contains messages, you must have the > entire "path", that is tour mailbox directory must contain the directories: > > .Somename > .Somename.Foo > .Somename.Foo.Bar > .Somename.Foo.Bar.Baz > > Of course each of the directories will contain cur, tmp, new and Dovecot files > > Ciao, > luigiThat was probably my problem. While I moved the entire Maildir structure from the old user's Maildir hierarchy, I just created .bpatterson.Foo.Bar/ .bpatterson.Foo.raB/ etc I never did create .bpatterson/ .bpatterson.Foo/ etc. Good to know. I'll sort that out better next time. Meanwhile, before reading this message, I created a new folder in Tbird, then dragged the folders out of the .bpatterson hierarchy to the new folder. That worked, but was a bit time consuming. I supposed I was thrown off because the destination user's Maildir has no .INBOX/ directory, only: .INBOX.this/ .INBOX.that/ but, I suppose INBOX is a special case since the rest of the top-level folders (Drafts, Templates, Sent Items, ...) do have directories. Next time! Thanks --Mark
Mark Foley wrote on 18/07/2016 00:56:> I supposed I was thrown off because the destination user's Maildir has no .INBOX/ directory, only: > > .INBOX.this/ > .INBOX.that/ > > but, I suppose INBOX is a special case since the rest of the top-level folders (Drafts, > Templates, Sent Items, ...) do have directories. Next time!Creating the folders before is a good idea, if you are not familiar with Maildir structure INBOX is the root dir of Maildir: if you look at the root dir, you will find the IMAP folders that begins with a "." AND cur,tmp,new dir: that three dirs are the INBOX -- Ciao, luigi / +--[Luigi Rosa]-- \ That the automobile has practically reached the limit of its development is suggested by the fact that during the past year no improvements of a radical nature have been introduced. --Scientific American, 1909
> On Jul 17, 2016, at 4:56 PM, Mark Foley <mfoley at ohprs.org> wrote: > > .bpatterson.Foo.Bar/ > .bpatterson.Foo.raB/ > etc > > I never did create > > .bpatterson/ > .bpatterson.Foo/Neither of these are needed. The path delimiter for IMAP is a . And you do not put maildir folders under maildir folders. INBOX is the top level maildir folder, and is not normally named INBOX on the filesystem. Here?s the folder structure for one of my accounts: drwx------ 5 1004 1004 512 May 22 2015 ,Junk drwx------ 5 1004 1004 512 Jul 18 02:14 .Archive drwxr-xr-x 5 1004 1004 512 Jun 26 13:25 .Archive.OLD drwx------ 5 1004 1004 512 Jul 18 02:15 .Drafts drwx------ 5 1004 1004 512 Jul 18 01:40 .Junk drwx------ 5 1004 1004 512 Jul 18 02:12 .Sent drwx------ 5 1004 1004 512 Jun 9 20:05 .Trash drwx------ 5 1004 1004 512 Jul 17 15:15 .bbedit drwx------ 5 1004 1004 512 Jul 18 01:47 .bind drwx------ 5 1004 1004 512 Jul 18 02:14 .dovecot drwx------ 5 1004 1004 512 Jul 18 02:14 .httpd drwx------ 5 1004 1004 512 Jul 18 01:47 .macosx drwx------ 5 1004 1004 512 Jul 18 01:47 .postfix drwx------ 5 1004 1004 512 Jul 18 01:40 .spamassassin drwx------ 5 1004 1004 512 Jul 18 01:40 .swift drwx------ 5 1004 1004 512 Jul 18 02:12 .tidbits drwx------ 5 1004 1004 512 Jul 19 2015 .tidbits.2014.archive drwxr-xr-x 2 1004 1004 512 Jun 15 15:00 cur -rw------- 1 1004 1004 44 Aug 19 2013 dovecot-keywords -rw------- 1 1004 1004 365 Jun 17 21:12 dovecot-uidlist -rw------- 1 1004 1004 8 Jul 18 01:45 dovecot-uidvalidity -rw------- 1 1004 1004 520 Jun 7 09:33 dovecot.index -rw------- 1 1004 1004 9824 Jul 17 14:18 dovecot.index.cache -rw------- 1 1004 1004 28008 Jul 3 09:45 dovecot.index.log -rw------- 1 1004 1004 3120 Jul 10 00:44 dovecot.mailbox.log -rw------- 1 1004 1004 4200 May 29 07:50 dovecot.mailbox.log.2 drwxr-xr-x 2 1004 1004 512 Jun 13 07:36 new -rw------- 1 1004 1004 43 Jul 10 00:43 subscriptions drwxr-xr-x 2 1004 1004 512 Jul 11 19:01 tmp Notice that .tidbits.2104.archive is three levels down, and the middle level doesn?t exist on its own. The folders new, tmp, and cur are the Maildir folders for INBOX. -- Don't congratulate yourself too much, or berate yourself either. You choices are half chance; so are everybody else's.
>From: "@lbutlr" <kremels at kreme.com> >To: dovecot at dovecot.org >Sent: Monday, July 18, 2016 9:19 AM >Subject: Re: Moving Maildir folders > >The folders new, tmp, and cur are the Maildir folders for INBOX.Every subfolder has new,tmp and cur directories. Every subfolder is a Maildir.>From http://www.courier-mta.org/imap/README.maildirquota.html?rev=1.1 :<< Each subdirectory is a fully-fledged Maildir of its own, that is you have .Important/tmp, .Important/new, and .Important/cur. Everything that applies to the main Maildir applies equally well to the subdirectory, including automatically cleaning up old files in tmp. A Maildir++ enhancement is that a message can be moved between folders and/or the main Maildir simply by moving/renaming the file (into the cur subdirectory of the destination folder). Therefore, the entire Maildir++ must reside on the same filesystem. Within each subdirectory there's an empty file, maildirfolder. Its existence tells the mail delivery agent that this Maildir is a really a folder underneath a parent Maildir++.>> Although this is from the courier website, it is a definition of the maildir structure which is a standard (it's not specific to courier). Yassine.