[Tickets #8948] Re: INBOX prefix of folder stripped in prefs

bugs at horde.org bugs at horde.org
Thu Apr 15 09:36:39 UTC 2010


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/8948
------------------------------------------------------------------------------
  Ticket             | 8948
  Updated By         | imp at lx-soft.com
  Summary            | INBOX prefix of folder stripped in prefs
  Queue              | IMP
  Version            | Git master
  Type               | Bug
  State              | Not A Bug
  Priority           | 1. Low
  Milestone          |
  Patch              |
  Owners             |
------------------------------------------------------------------------------


imp at lx-soft.com (2010-04-15 05:36) wrote:

Agree.

So, my problems are from the other side:

While debugging the source code, I found that my problem come from  
IMP::folderPref('some folder', true) function.

According to a cyrus IMAP backend, this function should add a 'INBOX.'  
prefix, if the folder is not INBOX, right? It's not the case...

Debugging of "IMP::folderPref('SPAM', true)":
folder = SPAM ; append = true;
def_ns = Array ( [name] => INBOX. [delimiter] => . [type] => personal  
[hidden] => )
empty_ns = Array ( [name] => [delimiter] => . [type] => shared [hidden] => )
GLOBALS['imp_imap']->getNamespace(folder) = Array ( [name] =>  
[delimiter] => . [type] => shared [hidden] => )

> if ($append) {
enter this if block
> if (!is_null($empty_ns) && strpos($folder, $empty_ns['delimiter']) === 0) {
skip this if block
> } elseif (($ns = $GLOBALS['imp_imap']->getNamespace($folder)) == null) {
skip this if block as ns is not null

So, folder value is not changed...






More information about the bugs mailing list