Author Topic: Two Inbox fodlers displayed  (Read 3168 times)

Offline Podraig

  • Newbie
  • *
  • Posts: 2
Two Inbox fodlers displayed
« on: August 04, 2011, 02:39:16 AM »
Hi All

I have roundcube connecting to a WGM server.

I have two Inbox folders being diplayed in both the main view, and in the Manage Folders

One shows as "Inbox", with the inbox icon
The other shows also as "Inbox", but with the blue folder icon.

My IMAP server returns the following folowing folder list:

a10 OK LIST completed
a11 list "" "*"
* LIST () "/" "Inbox"
* LIST () "/" "Deleted Items
* LIST () "/" "Drafts"
* LIST () "/" "Junk E-mail"
* LIST () "/" "Sent Items"

My "default_imap_folders" is, well, default.
I have tried lower case and upper case, no difference.

I have no issue on my other domain, which is hmail:
a03 list "" "*"
* LIST (\HasNoChildren) "." "INBOX"
* LIST (\HasNoChildren) "." "Drafts"
* LIST (\HasNoChildren) "." "Sent Items"
* LIST (\HasNoChildren) "." "Junk e-mail"
* LIST (\HasNoChildren) "." "Deleted Items"
* LIST (\HasNoChildren) "." "Trash"
* LIST (\HasNoChildren) "." "Sent"
* LIST (\HasNoChildren) "." "Junk"

Cheers!

(Ubuntu 64, Server Natty)

Offline Podraig

  • Newbie
  • *
  • Posts: 2
Two Inbox fodlers displayed
« Reply #1 on: August 24, 2011, 01:43:58 AM »
No ideas?? Anyone?? :)

Roundcube perhaps is just a no go with WorkGroupMail?

Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,850
Two Inbox fodlers displayed
« Reply #2 on: August 24, 2011, 02:55:30 AM »
are you using caching? if so then clear that and also check your imap subscriptions file on your server and make sure inbox isnt in there twice.
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and moreā€¦

Offline alec

  • Hero Member
  • *****
  • Posts: 1,365
Two Inbox fodlers displayed
« Reply #3 on: August 24, 2011, 07:30:57 AM »
Please, check with this patch. If it helps then open a ticket in trac.
Code: [Select]

--- rcube_imap_generic.php      (wersja 5120)
+++ rcube_imap_generic.php      (kopia robocza)
@@ -2189,6 +2189,11 @@
                 if ($cmd == 'LIST' || $cmd == 'LSUB') {
                     list($opts, $delim, $mailbox) = $this->tokenizeResponse($response, 3);
 
+                    // some servers return INBOX as Inbox, convert to upper-case
+                    if (strcasecmp('INBOX', $mailbox) === 0) {
+                        $mailbox = 'INBOX';
+                    }
+
                     // Add to result array
                     if (!$lstatus) {
                         $folders[] = $mailbox;