* email: fix bug introduced with rev37914, sometimes an additional Mailbox Mail was introduced, as Mail was assumed falsely as mailbox prefix

This commit is contained in:
Klaus Leithoff 2012-02-28 09:28:04 +00:00
parent 604d391537
commit 28b9d7980f

View File

@ -1880,7 +1880,7 @@ class felamimail_bo
if($type == 'personal' && ($singleNameSpace[2]['name'] == '#mh/' || count($nameSpace) == 1) && ($this->icServer->mailboxExist('Mail')||$this->icServer->mailboxExist('INBOX'))) {
$prefix_present = 'forced';
// uw-imap server with mailbox prefix or dovecot maybe
$foldersNameSpace[$type]['prefix'] = 'Mail';
$foldersNameSpace[$type]['prefix'] = ($this->icServer->mailboxExist('Mail')?'Mail':'');
} elseif($type == 'personal' && ($singleNameSpace[2]['name'] == '#mh/' || count($nameSpace) == 1) && $this->icServer->mailboxExist('mail')) {
$prefix_present = 'forced';
// uw-imap server with mailbox prefix or dovecot maybe