[GH-ISSUE #165] Duplicate INBOX in IMAP folder tree (one all caps + one other) #135

Closed
opened 2026-02-25 21:34:15 +03:00 by kerem · 3 comments
Owner

Originally created by @jchevali on GitHub (Feb 7, 2017).
Original GitHub issue: https://github.com/cypht-org/cypht/issues/165

Originally assigned to: @jasonmunro on GitHub.

I'm seeing duplicate Inboxes for some IMAP providers, where the Inbox name as listed by the server isn't all capitals.

E.g., imap.mail.yahoo.com calls their inbox "Inbox" (mixed case), as a result I see INBOX and Inbox in the tree.

Also, mail.net-c.com calls their inbox "inbox" (lower case), as a result I see INBOX and inbox in the tree.

As I hover over these, the URL link list_path is different, though they contain the same messages.

Originally created by @jchevali on GitHub (Feb 7, 2017). Original GitHub issue: https://github.com/cypht-org/cypht/issues/165 Originally assigned to: @jasonmunro on GitHub. I'm seeing duplicate Inboxes for some IMAP providers, where the Inbox name as listed by the server isn't all capitals. E.g., imap.mail.yahoo.com calls their inbox "Inbox" (mixed case), as a result I see INBOX and Inbox in the tree. Also, mail.net-c.com calls their inbox "inbox" (lower case), as a result I see INBOX and inbox in the tree. As I hover over these, the URL link list_path is different, though they contain the same messages.
kerem 2026-02-25 21:34:15 +03:00
  • closed this issue
  • added the
    bug
    imap
    labels
Author
Owner

@jasonmunro commented on GitHub (Feb 7, 2017):

Hello!
Thanks for the feedback on this. I'm not seeing this problem, so that's weird. IIRC, the code automatically inserts an all caps INBOX if none is returned, since IMAP servers are required to have at least an inbox folder. Seem likely this code is the culprit, but I can't yet explain why this is not happening to me. Could you tell me what version of PHP you are using? Just want to rule out a version issue.

Thanks!

<!-- gh-comment-id:278167368 --> @jasonmunro commented on GitHub (Feb 7, 2017): Hello! Thanks for the feedback on this. I'm not seeing this problem, so that's weird. IIRC, the code automatically inserts an all caps INBOX if none is returned, since IMAP servers are required to have at least an inbox folder. Seem likely this code is the culprit, but I can't yet explain why this is not happening to me. Could you tell me what version of PHP you are using? Just want to rule out a version issue. Thanks!
Author
Owner

@jasonmunro commented on GitHub (Feb 7, 2017):

Oh wait, I'm stupid. I do have a yahoo account and it shows the same problem you are seeing, I just never use that account much and never noticed. Working on a fix now. Thanks again!

<!-- gh-comment-id:278168112 --> @jasonmunro commented on GitHub (Feb 7, 2017): Oh wait, I'm stupid. I do have a yahoo account and it shows the same problem you are seeing, I just never use that account much and never noticed. Working on a fix now. Thanks again!
Author
Owner

@jasonmunro commented on GitHub (Feb 7, 2017):

Fixed in github.com/jasonmunro/cypht@daf75c0e31

<!-- gh-comment-id:278169217 --> @jasonmunro commented on GitHub (Feb 7, 2017): Fixed in https://github.com/jasonmunro/cypht/commit/daf75c0e31544b4af47bccb6512e7de780c7f95a
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/cypht#135
No description provided.