[#6984] pb showing folders named INBOX.*
Summary pb showing folders named INBOX.*
Queue IMP
Queue Version HEAD
Type Bug
State Resolved
Priority 1. Low
Owners Michael Slusarz <slusarz (at) horde (dot) org>
Requester rsalmon (at) mbpgroup (dot) com
Created 06/27/2008 (55 days ago)
Due
Updated 06/30/2008 (52 days ago)
Assigned 06/27/2008 (55 days ago)
Resolved 06/30/2008 (52 days ago)
Attachments
Milestone
Patch No

History
06/30/2008 Chuck Hagenbuch State ⇒ Resolved
Assigned to Michael Slusarz
 
06/30/2008 rsalmon (at) mbpgroup (dot) com Comment #4 Reply to this comment
I've just updated from CVS and it is working fine in IMP/DIMP.
Thanks.
06/30/2008 rsalmon (at) mbpgroup (dot) com Comment #3 Reply to this comment
Your mailbox is invalid.  I don't see a need to workaround invalid
mailbox names.  I don't care if other mail programs can handle it or
not either.
I can't tell you what program did create that folder. I just know that 
a few users here have it.
I don't know if the folder name is valid, but I know that the IMAP 
server and other apps like thunderbir/outlook do handle it. Here is 
the output of the IMAP server :
a003 list "Folders" "*"
a003 OK LIST completed
a003 list "Folders" "*"
a003 OK LIST completed
a005 list "Inbox" "*"
...
* LIST (\HasNoChildren) "." "INBOX.INBOX.Ronan"
* LIST (\HasNoChildren) "." "INBOX.INBOX.Sent"
* LIST (\HasNoChildren) "." "INBOX.Sent"
* LIST (\HasNoChildren) "." "INBOX.Notes"
...

I reported the bug because I thought that there was one, and event 
this type of naming doesn't usually happen, it can happen.


06/27/2008 Michael Slusarz Comment #2
State ⇒ Feedback
Reply to this comment
I have a folder called ".INBOX.Sent"
How is that a legal mailbox name?  In that mailbox, your base 
namespace would necessarily have to be '' (blank).  As such, that 
mailbox is correctly identified as 'INBOX.Sent', NOT '.INBOX.Sent'.   
You simply *can't* have an empty mailbox name.  See RFC 3501 [7.2.2]:

     The hierarchy delimiter is a character used to delimit levels of 
hierarchy in a mailbox name.

By definition, a mailbox name is *1* or more characters.  See RFC 3501 [9]:
mailbox         = "INBOX" / astring
astring         = 1*ASTRING-CHAR / string
ASTRING-CHAR   = ATOM-CHAR / resp-specials

Additionally, this mailbox requires that its parent is the mailbox ''. 
  However, that mailbox name is reserved by list as a method to 
determine what the hierarchy delimiter is for a given reference (RFC 
3501 [6.3.8]):

       An empty ("" string) mailbox name argument is a special request to
       return the hierarchy delimiter and the root name of the name given
       in the reference.

Your mailbox is invalid.  I don't see a need to workaround invalid 
mailbox names.  I don't care if other mail programs can handle it or 
not either.
06/27/2008 rsalmon (at) mbpgroup (dot) com Comment #1
Patch ⇒
Milestone ⇒
Queue ⇒ IMP
Summary ⇒ pb showing folders named INBOX.*
Type ⇒ Bug
Priority ⇒ 1. Low
State ⇒ Unconfirmed
Reply to this comment
following Bug: 6951

I have a folder called ".INBOX.Sent". It appears like this in IMP :
- INBOX
       +-- Sent
- INBOX
...

the second INBOX is not clickable.
The expected tree is :
- INBOX
+-- INBOX
       +-- Sent