Giulio Fidente writes:

we're developing an imap client and trying to understand what should be the correct implementation for the namespaces

the question is:

IF the imap server provides a PERSONAL namespace, the user folders should be created under the cited namespace

and

IF the imap server provides a SHARED namespace, the shared folders should be created under the cited namespace

right?

Although this is true, this is not the correct way to interpret namespaces.

All that the NAMESPACE command gives you is a list of folder namespaces, and the purpose of each folder namespace. Nothing tells you whether or not you can create any folders in any given namespace. It may very well be that some of the folder namespaces are read-only. You may open those folders, but you may not be able to create any yourself.

Furthermore, even if a particular folder namespace exist, it may not contain any folders, it may be completely empty. The server may support shared folders, for example, but may not have any folders actually defined.

Courier may list two namespaces for shared folders; on most cites only one of the shared folder namespaces gets actually used, and contain folders; while the other one will always be empty and not allow you to create any folders there.

All that NAMESPACE tells you is where folders may be found, and which kind. Whether or not you may or may not create folders in those namespaces is a separate matter.

so, with courier-imap any personal user directory (e.g. the Sent folder) should be created (and viewed) as an INBOX subfolder?

This is true for Courier-IMAP.

or whatever should be the correct way to operate for an imap MUA?

The correct way, in my opinion, is to present the available namespace with some logical label. If the server lists only one personal folder namespace, or one shared folder namespace, you can use a meaningful default label, such as "Personal folders", or "Shared folders". If there's more than one folder namespace of the same kind, differentiate between them: "Shared folders in “shared” ", and "Shared folders in “#shared” ", for example.

Do not attempt to open the folder namespace yourself, on your own initiative. Merely list the available folder namespaces, and await user prompt to open one or the other.

Attachment: pgpcCGeavheBs.pgp
Description: PGP signature

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Courier-imap mailing list
Courier-imap@lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-imap

Reply via email to