<?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>IMAP bug when deleting messages</title> 
  <pubDate>Sat, 04 Apr 2026 14:53:43 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/9796</link> 
  <atom:link rel="self" type="application/rss+xml" title="IMAP bug when deleting messages" href="https://bugs.horde.org/ticket/9796/rss" /> 
  <description>IMAP bug when deleting messages</description> 
 
   
   
  <item> 
   <title>Sometimes when deleting messages from INBOX I get this ghost</title> 
   <description>Sometimes when deleting messages from INBOX I get this ghost message (see screenshot). The count of ghost messages are equal to count of deleted messages.

I&#039;m using IMAP Trash instead of ordinary delete/purge settings.</description> 
   <pubDate>Mon, 04 Apr 2011 10:03:52 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9796#t63071</link> 
  </item> 
   
  <item> 
   <title>To further debug this issue, we need details of the IMP -&gt; I</title> 
   <description>To further debug this issue, we need details of the IMP -&gt; IMAP/POP communication.

To enable debugging, see instructions contained in imp/config/backends.php (the &#039;debug&#039; config parameter).  

Debugging should not be enabled on a production server,   Attach/post only the portion of the log that directly deals with the problem reported (it may be simplest to clear the log file and then perform the event that causes the error).</description> 
   <pubDate>Mon, 04 Apr 2011 10:05:58 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9796#t63072</link> 
  </item> 
   
  <item> 
   <title>Here you go. The actions I&#039;ve performed.

1. Login to Hord</title> 
   <description>Here you go. The actions I&#039;ve performed.

1. Login to Horde/IMP.
2. Go to INBOX (INBOX page has 1 newest messages which is read, 3 messages marked as deleted from another client, 16 read older messages. Everything is ordered by Date, Descending).
3. Mark checkbox and delete first message.
4. Mark checkboxes and delete 3 messages which were marked as deleted.
5. Three ghost messages appear.</description> 
   <pubDate>Mon, 04 Apr 2011 10:17:26 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9796#t63075</link> 
  </item> 
   
  <item> 
   <title>Any chance this gets fixed before the release? This is reall</title> 
   <description>Any chance this gets fixed before the release? This is really a showstopper for me.</description> 
   <pubDate>Tue, 05 Apr 2011 16:54:00 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9796#t63167</link> 
  </item> 
   
  <item> 
   <title>&gt; Any chance this gets fixed before the release? This is rea</title> 
   <description>&gt; Any chance this gets fixed before the release? This is really a 
&gt; showstopper for me.

No.  Especially since I can&#039;t reproduce.</description> 
   <pubDate>Tue, 05 Apr 2011 17:32:59 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9796#t63168</link> 
  </item> 
   
  <item> 
   <title>Well, I have uploaded IMAP logs. If there is anything more t</title> 
   <description>Well, I have uploaded IMAP logs. If there is anything more that I could do, I would gladly help.</description> 
   <pubDate>Tue, 05 Apr 2011 17:37:41 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9796#t63169</link> 
  </item> 
   
  <item> 
   <title>&gt; Well, I have uploaded IMAP logs. If there is anything more</title> 
   <description>&gt; Well, I have uploaded IMAP logs. If there is anything more that I 
&gt; could do, I would gladly help.

There&#039;s a good chance your issue might be that your server indicates in multiple places it supports CONDSTORE, and then when you select a mailbox you get:

(1301911804,0642) S: * OK [NOMODSEQ] Sorry, modsequences have not been enabled on this mailbox</description> 
   <pubDate>Tue, 05 Apr 2011 17:50:35 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9796#t63170</link> 
  </item> 
   
  <item> 
   <title>At least on Cyrus this is the default behaviour. CONDSTORE i</title> 
   <description>At least on Cyrus this is the default behaviour. CONDSTORE is enabled globally, but to actually work user (or admin) must enable it on the mailboxes he wants. Don&#039;t ask why :)</description> 
   <pubDate>Tue, 05 Apr 2011 17:56:06 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9796#t63171</link> 
  </item> 
   
  <item> 
   <title>Yup - it was a no MODSEQ issue in CONDSTORE enabled servers.</title> 
   <description>Yup - it was a no MODSEQ issue in CONDSTORE enabled servers.  Should be fixed.

Has the side benefit of allowing caching on everything else in the mailbox but flags (for whatever reason, we were deleting the cached results on every page access if MODSEQs weren&#039;t available.  This isn&#039;t correct.  UIDs aren&#039;t changing - that&#039;s the point of UIDVALIDITY - so this data is all still valid.  It&#039;s just the flag data that is affected by the absence of MODSEQs).</description> 
   <pubDate>Tue, 05 Apr 2011 20:13:24 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9796#t63177</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git for this ticket:

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

Bug #9796: CONDSTORE fixes when MODSEQ is not available in mailbox
RFC 4551 [3.1] - CONDSTORE server MUST return HIGHESTMODSEQ info.
If not, assume server is broken and ignore.

Don&#039;t need to delete cache if MODSEQ is not available - we just won&#039;t be
able to cache flag results.

Correctly handle cache data if MODSEQ isn&#039;t available.  Namely - avoid
all flag caching when MODSEQ is not available in a mailbox.

 3 files changed, 33 insertions(+), 47 deletions(-)
http://git.horde.org/horde-git/-/commit/ce223be3fd4550b2dd60c1be88d6db404b7f8e29</description> 
   <pubDate>Tue, 05 Apr 2011 20:13:34 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9796#t63178</link> 
  </item> 
   
  <item> 
   <title>Does this suppose to work on RC2? I just applied the patch o</title> 
   <description>Does this suppose to work on RC2? I just applied the patch on stock RC2, deleted the cache and now the issue is a little bit different. I still get ghost messages but instead of &quot;Unknown date&quot;/&quot;No subject&quot; I get old real subject/date/from from deleted message. It is marked as unread. If I logout/login it disappears.</description> 
   <pubDate>Tue, 05 Apr 2011 20:42:31 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9796#t63179</link> 
  </item> 
   
  <item> 
   <title>I have no idea if this would work properly by patching on RC</title> 
   <description>I have no idea if this would work properly by patching on RC2.  But you most definitely need to purge your cache.</description> 
   <pubDate>Tue, 05 Apr 2011 20:49:02 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9796#t63182</link> 
  </item> 
   
  <item> 
   <title>I&#039;ve pulled a whole Imap_Client package and reinstalled it. </title> 
   <description>I&#039;ve pulled a whole Imap_Client package and reinstalled it. Still no luck. The strange thing is that this problem tend to appear on larger mailboxes when deletion is slower.</description> 
   <pubDate>Tue, 05 Apr 2011 21:06:27 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9796#t63183</link> 
  </item> 
   
  <item> 
   <title>I&#039;ve spotted these new messages in the logs:

2011-04-06T0</title> 
   <description>I&#039;ve spotted these new messages in the logs:

2011-04-06T00:07:29+03:00 WARN: HORDE [imp] PHP ERROR: array_combine(): Both parameters should have an equal number of elements [pid 13172 on line 2953 of &quot;/usr/share/pear/Horde/Imap/Client/Base.php&quot;]
2011-04-06T00:07:29+03:00 NOTICE: HORDE [imp] PHP ERROR: Undefined index: messages [pid 13172 on line 2623 of &quot;/usr/share/pear/Horde/Imap/Client/Base.php&quot;]
</description> 
   <pubDate>Tue, 05 Apr 2011 21:08:31 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9796#t63184</link> 
  </item> 
   
  <item> 
   <title>But there&#039;s also been a bunch of changes in IMP since RC2, s</title> 
   <description>But there&#039;s also been a bunch of changes in IMP since RC2, so installing a new version if Imap_Client doesn&#039;t really tell me anything.

I can verify that I was able to reproduce your issue before this fix, and I can no longer reproduce after this fix.</description> 
   <pubDate>Tue, 05 Apr 2011 21:08:33 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9796#t63185</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git for this ticket:

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

Bug #9796: Make sure messages is always defined

 1 files changed, 1 insertions(+), 3 deletions(-)
http://git.horde.org/horde-git/-/commit/c2a2ec543eeb5514c4883682a563d91c6f267668</description> 
   <pubDate>Tue, 05 Apr 2011 21:22:28 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9796#t63186</link> 
  </item> 
   
  <item> 
   <title>&gt; I&#039;ve spotted these new messages in the logs:
&gt;
&gt; 2011-04</title> 
   <description>&gt; I&#039;ve spotted these new messages in the logs:
&gt;
&gt; 2011-04-06T00:07:29+03:00 WARN: HORDE [imp] PHP ERROR: 
&gt; array_combine(): Both parameters should have an equal number of 
&gt; elements [pid 13172 on line 2953 of 
&gt; &quot;/usr/share/pear/Horde/Imap/Client/Base.php&quot;]
&gt; 2011-04-06T00:07:29+03:00 NOTICE: HORDE [imp] PHP ERROR: Undefined 
&gt; index: messages [pid 13172 on line 2623 of 
&gt; &quot;/usr/share/pear/Horde/Imap/Client/Base.php&quot;]

Huh - I never saw this.  Try this change.</description> 
   <pubDate>Tue, 05 Apr 2011 21:23:36 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9796#t63187</link> 
  </item> 
   
  <item> 
   <title>I cannot reproduce it anymore. Cool! I&#039;ll reopen the ticket </title> 
   <description>I cannot reproduce it anymore. Cool! I&#039;ll reopen the ticket if I see it again, but now I have to get some sleep :)</description> 
   <pubDate>Tue, 05 Apr 2011 21:29:30 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9796#t63188</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
