<?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>Empty mailbox doesn&#039;t</title> 
  <pubDate>Fri, 10 Apr 2026 19:46:52 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/5387</link> 
  <atom:link rel="self" type="application/rss+xml" title="Empty mailbox doesn&#039;t" href="https://bugs.horde.org/ticket/5387/rss" /> 
  <description>Empty mailbox doesn&#039;t</description> 
 
   
   
  <item> 
   <title>When trash folder is not used, &quot;empty folder&quot; button doesn&#039;t</title> 
   <description>When trash folder is not used, &quot;empty folder&quot; button doesn&#039;t empty the folder.  It marks all messages as deleted and says &quot;Emptied all messages from %s.&quot;



It should either say &quot;Marked all messages in %s as deleted&quot; or it should expunge the folder to actually empty it.</description> 
   <pubDate>Mon, 21 May 2007 21:42:10 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/5387#t33303</link> 
  </item> 
   
  <item> 
   <title>IMP_Message::emptyMailbox() uses IMP_Message::delete() which</title> 
   <description>IMP_Message::emptyMailbox() uses IMP_Message::delete() which we use for *any* message deletion.</description> 
   <pubDate>Mon, 21 May 2007 22:04:30 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/5387#t33309</link> 
  </item> 
   
  <item> 
   <title>I think, having used this for a few weeks now, that I like t</title> 
   <description>I think, having used this for a few weeks now, that I like the old behavior better, and it is more consistent with how we document the feature.



If we keep the new behavior, then I -think- the problem is that calling IMP_Message::delete() with array(&#039;1:*&#039;) for $indices works for the IMAP deletion, but that the message cache isn&#039;t updated properly (I don&#039;t think IMP_MailboxCache groks 1:*). I don&#039;t use a trash folder, and using empty mailbox the first time has no apparent effect - but if I purge the folder afterwards, then it is emptied.</description> 
   <pubDate>Sat, 16 Jun 2007 00:09:01 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/5387#t34253</link> 
  </item> 
   
  <item> 
   <title>Having thought about this five more seconds, I realized that</title> 
   <description>Having thought about this five more seconds, I realized that the changed behavior made &quot;empty folder&quot; pretty non-useful from the Folders screen, if you&#039;re not using a trash folder. So I changed it to use the trash folder if there is a trash folder, but otherwise to go ahead and delete the messages immediately.</description> 
   <pubDate>Sat, 16 Jun 2007 00:17:05 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/5387#t34257</link> 
  </item> 
   
  <item> 
   <title>I just tried this from the mailbox view, and it marked all m</title> 
   <description>I just tried this from the mailbox view, and it marked all messages deleted, but didn&#039;t immediately expunge...</description> 
   <pubDate>Thu, 21 Jun 2007 20:39:52 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/5387#t34548</link> 
  </item> 
   
  <item> 
   <title>This sounds an awful lot like the problem I&#039;ve been describi</title> 
   <description>This sounds an awful lot like the problem I&#039;ve been describing in email..



http://marc.info/?l=imp&amp;m=120587110731837&amp;w=2

http://marc.info/?l=imp&amp;m=120498692231289&amp;w=2



All the user feedback we&#039;ve received thus far in testing is that &quot;Empty folder&quot; should delete and expunge, and currently neither Head nor IMP 4.2 RC2 or 3 do that.  Our rollout team concurs.



Even if &quot;empty folder&quot; is only supposed to delete and not expunge, it doesn&#039;t do that well either.  The &quot;empty folder&quot; icon present in mailbox view, will tell you that the folder&#039;s been emptied, but then doesn&#039;t refresh the message list.  It tells you it&#039;s deleted everything, but unless you refresh the screen, the messages don&#039;t even appear to be marked deleted.



Based on the comments in this ticket, and our own experience, I don&#039;t think this issue is actually resolved.

</description> 
   <pubDate>Tue, 18 Mar 2008 20:51:10 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/5387#t43976</link> 
  </item> 
   
  <item> 
   <title>Does this fix the issue?

http://lists.horde.org/archives/cv</title> 
   <description>Does this fix the issue?

http://lists.horde.org/archives/cvs/Week-of-Mon-20080317/076363.html</description> 
   <pubDate>Wed, 19 Mar 2008 06:42:34 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/5387#t43983</link> 
  </item> 
   
  <item> 
   <title>Yay!   http://lists.horde.org/archives/cvs/Week-of-Mon-20080</title> 
   <description>Yay!   http://lists.horde.org/archives/cvs/Week-of-Mon-20080317/076363.html  fixes the issue.



Thanks so much!</description> 
   <pubDate>Wed, 19 Mar 2008 14:12:09 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/5387#t43993</link> 
  </item> 
   
  <item> 
   <title>Actually, I spoke to soon.



It&#039;s still broken if a user ha</title> 
   <description>Actually, I spoke to soon.



It&#039;s still broken if a user has a use_trash preference, if use_trash is turned off (e.g. when someone has tried &quot;use_trash&quot; and then decided they didn&#039;t like it and turned it off...)



| liamr    | imp        | use_trash | 0          |



I&#039;m guessing that &quot;use_trash&quot; set to 0 breaks the empy($trash_folder) check in the patch..



+                $trash_folder = ($GLOBALS[&#039;prefs&#039;]-&gt;getValue(&#039;use_trash&#039;)) ? IMP::folderPref($GLOBALS[&#039;prefs&#039;]-&gt;getValue(&#039;trash_folder&#039;), true) : null;

+                if (empty($trash_folder) || ($trash_folder == $mbox)) {



</description> 
   <pubDate>Wed, 19 Mar 2008 14:27:19 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/5387#t43996</link> 
  </item> 
   
  <item> 
   <title>0 should still evaluate to false there, so the trash folder </title> 
   <description>0 should still evaluate to false there, so the trash folder should be null, so the check should be fine (if I&#039;m reading it in context correctly). Can you put in some variable checks (var_dump or such) to check all that?</description> 
   <pubDate>Wed, 19 Mar 2008 18:04:41 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/5387#t44015</link> 
  </item> 
   
  <item> 
   <title>Furthermore, what you describe is exactly what I do to test </title> 
   <description>Furthermore, what you describe is exactly what I do to test -- I use trash and only turn it off when I am doing dev work/bug tracking.  And it works fine for me.



The logic is &quot;expunge all messages if not using trash or if in the trash mailbox.&quot;  Or, put a different way, &quot;only expunge if either there is no trash mailbox defined or if the current mailbox is the trash mailbox.&quot;</description> 
   <pubDate>Wed, 19 Mar 2008 18:09:18 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/5387#t44016</link> 
  </item> 
   
  <item> 
   <title>Weird.  I can&#039;t replicate it anymore.



Ok, I guess I rever</title> 
   <description>Weird.  I can&#039;t replicate it anymore.



Ok, I guess I revert to my original statement that the patch has fixed the issue.</description> 
   <pubDate>Wed, 19 Mar 2008 18:26:50 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/5387#t44018</link> 
  </item> 
   
  <item> 
   <title>Excellent, thanks.</title> 
   <description>Excellent, thanks.</description> 
   <pubDate>Wed, 19 Mar 2008 18:29:03 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/5387#t44020</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
