<?xml version="1.0" encoding="UTF-8"?> 
<?xml-stylesheet href="https://dev.horde.org/themes/horde//default/feed-rss.xsl" type="text/xsl"?> 
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> 
 <channel> 
  <title>INBOX prefix of folder stripped in prefs</title> 
  <pubDate>Fri, 10 Apr 2026 00:42:30 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/8948</link> 
  <atom:link rel="self" type="application/rss+xml" title="INBOX prefix of folder stripped in prefs" href="https://bugs.horde.org/ticket/8948/rss" /> 
  <description>INBOX prefix of folder stripped in prefs</description> 
 
   
   
  <item> 
   <title>On my HORDE/IMP install, based on cyrus imap 2.2 + mysql bac</title> 
   <description>On my HORDE/IMP install, based on cyrus imap 2.2 + mysql backend,
the &#039;INBOX.&#039; prefix of any folder is stripped in my prefs backend:

-------------------------------------------------------------------
: pref_uid : pref_scope : pref_name : pref_value
-------------------------------------------------------------------
: vink : imp : drafts_folder : Draft
: vink : imp : trash_folder : Trash
: vink : imp : spam_folder : SPAM
--------------------------------------------------------------------

When I add &#039;INBOX.&#039; in front of these elements, these folders are correctly recognized in the horde/imp framework.

I&#039;ve same issue with identites about sent-mail folder:
When composing e-mail, imp complains of not beeing able to create &quot;sent-mail&quot;, but INBOX.sent-mail already exists. If I mannually edit the corresponding prefs in my backend (ie. rewrite sent-mail to INBOX.sent-mail), the issue is solved.

</description> 
   <pubDate>Tue, 06 Apr 2010 08:52:20 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8948#t58396</link> 
  </item> 
   
  <item> 
   <title>This is precisely the expected behavior.  Mailbox names are </title> 
   <description>This is precisely the expected behavior.  Mailbox names are stored without their namespace on purpose.  See IMP::folderPref().</description> 
   <pubDate>Tue, 06 Apr 2010 17:15:10 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8948#t58398</link> 
  </item> 
   
  <item> 
   <title>Fine.

So, IMP strip the &quot;INBOX.&quot; prefix: Normal behaviour</title> 
   <description>Fine.

So, IMP strip the &quot;INBOX.&quot; prefix: Normal behaviour
But, it does not add it again to recognize Draft/Trash/SPAM/sent-mail folder:

When I modify &quot;Server and Folder Information&quot; options, It saved correct values in database backend, but, IMP do not display (ie. recognize) the corresponding value (see screenshot attached).</description> 
   <pubDate>Tue, 06 Apr 2010 21:53:05 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8948#t58402</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git for this ticket:

Bug #8948: F</title> 
   <description>Changes have been made in Git for this ticket:

Bug #8948: Fix sent-mail selection for non-empty namespaces

http://git.horde.org/diff.php/imp/lib/Prefs/Ui.php?rt=horde-git&amp;r1=375ca9376b445764324b61a623a9a4b2c9fac567&amp;r2=9d2152b7ddcc976ca796ae9801154181af3fc149</description> 
   <pubDate>Wed, 14 Apr 2010 05:59:33 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8948#t58481</link> 
  </item> 
   
  <item> 
   <title>&gt; So, IMP strip the &quot;INBOX.&quot; prefix: Normal behaviour
&gt; But</title> 
   <description>&gt; So, IMP strip the &quot;INBOX.&quot; prefix: Normal behaviour
&gt; But, it does not add it again to recognize Draft/Trash/SPAM/sent-mail folder:

Works for me, except for an issue with sent-mail folder which was just fixed.  Considering the entire options UI was rewritten in the last few weeks, you may have fallen victim to a transient issue.</description> 
   <pubDate>Wed, 14 Apr 2010 06:00:22 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8948#t58482</link> 
  </item> 
   
  <item> 
   <title>Fine.

I&#039;ve updated to latest git today. But, the issue is</title> 
   <description>Fine.

I&#039;ve updated to latest git today. But, the issue is still there (cyrus IMAP backend).
Thus, I&#039;ve attached a patch which solves the issue for me.</description> 
   <pubDate>Wed, 14 Apr 2010 13:32:59 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8948#t58490</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git for this ticket:

Revert &quot;Bug </title> 
   <description>Changes have been made in Git for this ticket:

Revert &quot;Bug #8948: Fix sent-mail selection for non-empty namespaces&quot;
This reverts commit 9d2152b7ddcc976ca796ae9801154181af3fc149.

http://git.horde.org/diff.php/imp/lib/Prefs/Ui.php?rt=horde-git&amp;r1=c4a8bbfa852ae49c87acf4806c51b8c241af2f12&amp;r2=055adb5538a560ebfedbf44555f5fcd64159b465</description> 
   <pubDate>Wed, 14 Apr 2010 20:02:05 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8948#t58497</link> 
  </item> 
   
  <item> 
   <title>&gt; Fine.
&gt;
&gt; I&#039;ve updated to latest git today. But, the iss</title> 
   <description>&gt; Fine.
&gt;
&gt; I&#039;ve updated to latest git today. But, the issue is still there 
&gt; (cyrus IMAP backend).
&gt; Thus, I&#039;ve attached a patch which solves the issue for me.

This breaks things for me.  And it makes no sense - IMP:folderPref() MUST be false when saving to the backend.  That&#039;s the whole point of IMP::folderPref().</description> 
   <pubDate>Wed, 14 Apr 2010 23:22:58 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8948#t58501</link> 
  </item> 
   
  <item> 
   <title>Agree.

So, my problems are from the other side:

While </title> 
   <description>Agree.

So, my problems are from the other side:

While debugging the source code, I found that my problem come from IMP::folderPref(&#039;some folder&#039;, true) function.

According to a cyrus IMAP backend, this function should add a &#039;INBOX.&#039; prefix, if the folder is not INBOX, right? It&#039;s not the case...

Debugging of &quot;IMP::folderPref(&#039;SPAM&#039;, true)&quot;:
folder = SPAM ; append = true;
def_ns = Array ( [name] =&gt; INBOX. [delimiter] =&gt; . [type] =&gt; personal [hidden] =&gt; )
empty_ns = Array ( [name] =&gt; [delimiter] =&gt; . [type] =&gt; shared [hidden] =&gt; )
GLOBALS[&#039;imp_imap&#039;]-&gt;getNamespace(folder) = Array ( [name] =&gt; [delimiter] =&gt; . [type] =&gt; shared [hidden] =&gt; )

&gt; if ($append) {
enter this if block
&gt; if (!is_null($empty_ns) &amp;&amp; strpos($folder, $empty_ns[&#039;delimiter&#039;]) === 0) {
skip this if block
&gt; } elseif (($ns = $GLOBALS[&#039;imp_imap&#039;]-&gt;getNamespace($folder)) == null) {
skip this if block as ns is not null

So, folder value is not changed...</description> 
   <pubDate>Thu, 15 Apr 2010 09:36:39 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8948#t58507</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git for this ticket:

Bug #8948: F</title> 
   <description>Changes have been made in Git for this ticket:

Bug #8948: Fix namespace stripping for pref values

http://git.horde.org/diff.php/imp/lib/IMP.php?rt=horde-git&amp;r1=e6a2822fd71cf145a13b4dbd52ad13035b7d8f90&amp;r2=66a79e1de90217ec0b55c0744e86cf047e946c2b
http://git.horde.org/diff.php/imp/lib/Imap.php?rt=horde-git&amp;r1=9f73d1ff74206b8e5d162ba79e0415027b305106&amp;r2=66a79e1de90217ec0b55c0744e86cf047e946c2b</description> 
   <pubDate>Fri, 16 Apr 2010 19:34:29 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8948#t58533</link> 
  </item> 
   
  <item> 
   <title>OK - what about this?</title> 
   <description>OK - what about this?</description> 
   <pubDate>Fri, 16 Apr 2010 19:34:43 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8948#t58534</link> 
  </item> 
   
  <item> 
   <title>It seems a lot better:
- The prefs are stored as expected (</title> 
   <description>It seems a lot better:
- The prefs are stored as expected (no INBOX. prefix).
- The prefs are displayed as expected.

A last &quot;minor&quot; issue appears when I try to compose email:
- Before switching between identities, it displays: &quot;Save a copy in sent-mail&quot;
- When I switch between identities, it display: &quot;Save a copy in INBOX.sent-mail&quot;

But, the mail is saved in the correct folder.

Meanwhile, there is a small typo error over there:

--- a/imp/lib/Prefs/Identity.php
+++ b/imp/lib/Prefs/Identity.php
@@ -515,7 +515,7 @@ class Imp_Prefs_Identity extends Horde_Prefs_Identity
     public function setValue($key, $val, $identity = null)
     {
         if ($key == &#039;sent_mail_folder&#039;) {
-            $val = IMP::folderPrefs($val, false);
+            $val = IMP::folderPref($val, false);
         }
         return parent::setValue($key, $val, $identity);
     }
</description> 
   <pubDate>Fri, 16 Apr 2010 20:49:35 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8948#t58535</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git for this ticket:

Bug #8948: T</title> 
   <description>Changes have been made in Git for this ticket:

Bug #8948: Typo

http://git.horde.org/diff.php/imp/lib/Prefs/Identity.php?rt=horde-git&amp;r1=5b0969a7d3fad81ae04676dc8731a70205943ec5&amp;r2=6088ce0ba2705b74abb190964fb40428aa912467</description> 
   <pubDate>Fri, 16 Apr 2010 22:06:17 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8948#t58537</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git for this ticket:

Bug #8948: F</title> 
   <description>Changes have been made in Git for this ticket:

Bug #8948: Fix sent-mail mbox display when switching identities

http://git.horde.org/diff.php/imp/js/compose.js?rt=horde-git&amp;r1=69049e265915aa1f6a005b6631cc1bae051989ae&amp;r2=76b9d11e4426fbe58fc31e27ed3193423b32a4c7</description> 
   <pubDate>Fri, 16 Apr 2010 22:06:18 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8948#t58538</link> 
  </item> 
   
  <item> 
   <title>Should be fixed.</title> 
   <description>Should be fixed.</description> 
   <pubDate>Fri, 16 Apr 2010 22:06:42 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8948#t58539</link> 
  </item> 
   
  <item> 
   <title>Great Job!

Everything is solved for me</title> 
   <description>Great Job!

Everything is solved for me</description> 
   <pubDate>Fri, 16 Apr 2010 22:19:47 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8948#t58540</link> 
  </item> 
   
  <item> 
   <title>Thanks for helping track these issues down.</title> 
   <description>Thanks for helping track these issues down.</description> 
   <pubDate>Fri, 16 Apr 2010 22:23:33 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8948#t58541</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
