When setting an IMAP root to INBOX, it skips over the inbox. I'm not
sure how common that root is, but I know it's on my box.
Here is the patch.
Also, are there archives of the list? I don't want to pollute it with
stuff that's already been covered.
#############################
diff -u -r1.10 rcube_imap.inc
--- rcube_imap.inc 15 Oct 2005 13:27:34 -0000 1.10
+++ rcube_imap.inc 16 Oct 2005 23:18:24 -0000
@@ -929,9 +929,9 @@
function _mod_mailbox($mbox, $mode='in')
{
- if (!empty($this->root_dir) && $mode=='in')
+ if (!empty($this->root_dir) && $this->root_dir != $mbox &&
$mode=='in')
$mbox = $this->root_dir.$this->delimiter.$mbox;
- else if (strlen($this->root_dir) && $mode=='out')
+ else if (strlen($this->root_dir) && $this->root_dir != $mbox &&
$mode=='out')
$mbox = substr($mbox, strlen($this->root_dir)+1);
return $mbox;