Re: [Imap-protocol] Use of namespace in LIST command

Jeff McKay <[email protected]> Fri, 06 Feb 2015 10:27:22 -0800
Newsgroups gmane.mail.imap.general
Message-ID <[email protected]>
Thanks for the information.  The server is described by my customer as 
“Washington University's WU-IMAP version 2004g”.
What you told me is pretty much what I thought.  However I still cannot 
get the LIST command to work with any of the
alternate namespaces.   For example here are a couple attempts. What 
does the message "mh format names disabled" mean?

<recv 155>* NAMESPACE (("" "/")("#mhinbox" NIL)("#mh/" "/")) (("~" "/")) 
(("#shared/" "/")("#ftp/" "/")("#news." ".")("#public/" "/"))
A006 OK NAMESPACE completed
<send 25>abcd LIST "" "#mhinbox"
<recv 95>* NO /users/u2/bob/.mh_profile not found, mh format names disabled
abcd OK LIST completed

<send 22>abcd LIST "" "#mh/%"
<recv 95>* NO /users/u2/bob/.mh_profile not found, mh format names disabled
abcd OK LIST completed


On 2/6/2015 2:21 AM, Dave Cridland wrote:
> On 6 February 2015 at 01:21, Jeff McKay <[email protected] 
> <mailto:[email protected]>> wrote:
>
>     I think I need a refresher, or I am confused about something.  I
>     log on to imap account "bob" (not sure which server
>     right now), and the NAMESPACE command gives me:
>
>     * NAMESPACE (("" "/")("#mhinbox" NIL)("#mh/" "/")) (("~" "/"))
>     (("#shared/" "/")("#ftp/" "/")("#news." ".")("#public/" "/"))
>
>     My usual command:  LIST "" *
>
>     tells me that there is an INBOX and nothing more, and the customer
>     says there should be a bunch of other folders.  I have
>     tried:
>
>     LIST "" "~bob/%"
>     LIST "" "~/bob/%"
>     LIST "" "#mh/bob/%"
>     LIST "" "#mhinbox/bob/%"
>
>     but for each of the above, the command returns no folder names.
>     What I am doing wrong?
>
>
> So the NAMESPACE here is giving you three sets; for example the first 
> is here:
>
> (("" "/")("#mhinbox" NIL)("#mh/" "/"))
>
> This is your own mailboxes, and it notes that the namespaces are:
>
> ("" "/")
>
> An empty string prefix - which apparently contains only INBOX.
>
> ("#mhinbox" NIL)
>
> This one has no separator, and therefore no hierarchy:
>
> . LIST "" "#mhinbox"
>
> Might give you a mailbox for the MH inbox. Or might not - it's telling 
> you where it *would* be if it exists.
>
> ("#mh/" "/")
>
> Other MH mailboxes for bob:
>
> . LIST "" "#mh/%"
>
> Note that it has a hierarchy separator, but also that there is one in 
> the prefix. This is common, but as we'll see, not essential.
>
> The next section is other users' mailboxes. Let's consider that there 
> exists another user "alice"; one might find Alice's mailboxes with:
>
> . LIST "" "~alice/%"
>
> But really, all this tells us is that if you find a mailbox beginning 
> "~", it's another user's one.
>
> The final group is shared mailboxes; by now you've got the idea:
>
> . LIST "" "#shared/%"
> . LIST "" "#ftp/%"
> . LIST "" "#news.%"
>
> I'm pretty sure the server is UW or Panda.
>
> Dave.

_______________________________________________
Imap-protocol mailing list
[email protected]
http://mailman13.u.washington.edu/mailman/listinfo/imap-protocol