[Dovecot] mbox, hierarchical folders/folders and IMAP
Stan Hoeppner
stan at hardwarefreak.com
Mon Dec 26 09:48:32 EET 2011
On 12/26/2011 12:43 AM, Alexander Chekalin wrote:
> Hello Stan,
>
> thank you for your care, the answer was pretty simple, and yes you're
> right, I'd better read the docs before:
>
> I tried to create folder named like 'Old Mail' (and in fact I got
> another mbox container), while I needed to create 'Old Mail/' (note the
> slash), which results in real filesystem directory.
Oh wow, that is simple. And makes perfect sense. Before my last reply
I read the php IMAP command set definitions/parameters and I didn't see
anything about how to do this, which is an odd omission in
documentation. I guess so few people use mbox these days they omit that
case from the docs. I hit three different sources and none of them
mentioned the trailing slash for creating 'sub-folders-only' folders...
> Thanks for your time anyway!
You're welcome. Sorry I didn't get you the answer, but I'm glad you
were able to figure it out on your own.
--
Stan
> 25.12.2011 3:50, Stan Hoeppner пишет:
>> On 12/24/2011 10:26 AM, Alexander Chekalin wrote:
>>> Stan, thank you for the reply,
>>>
>>> But I believe I obey this rule: I create "folder with ONLY folders
>>> inside", then in it another "folder with ONLY folders inside", and
>>> the into this second folder I create "folder with ONLY messages
>>> inside" (the path is "oldmail/lists/dovecot", and oldmail and lists
>>> are folders in filesystem, while dovecot is mbox container in
>>> filesystem).
>>>
>>> My problem is I can not understand which way should I create "folder
>>> with ONLY folders inside", and which way to create messages-only
>>> folder, going down to IMAP protocol commands. PHP for example looks
>>> like use only one command to create a mailbox, no difference what
>>> type of it I need.
>>>
>>> I understand PHP isn't the only script language to deal with IMAP, so
>>> I seek for advice how IMAP works with on protocol level.
>>
>> Ah, ok. I didn't fully understand your issue. Maybe Timo, or someone
>> else, knows the necessary imap folder creation command sequence for this.
More information about the dovecot
mailing list