<?xml version="1.0" encoding="UTF-8"?> 
<?xml-stylesheet href="/h/themes/default/feed-rss.xsl" type="text/xsl"?> 
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> 
 <channel> 
  <title>delete action does not update mailbox in traditional view</title> 
  <pubDate>Thu, 23 May 2013 07:52:08 +0000</pubDate> 
  <link>http://bugs.horde.org/ticket/11115</link> 
  <atom:link rel="self" type="application/rss+xml" title="delete action does not update mailbox in traditional view" href="http://bugs.horde.org/ticket/11115/rss" /> 
  <description>delete action does not update mailbox in traditional view</description> 
 
   
   
  <item> 
   <title>When user marks message as deleted in traditional mode, the </title> 
   <description>When user marks message as deleted in traditional mode, the folder view or message status is not updated and the message is still shown as not deleted. If user does folder refresh or does the same mark as delete operation again, then the message status is updated as deleted.

This does not happen when the delete status is removed from the message. Then the folder view or message status is updated immediately.

How to reproduce situation:
1. log in to imp in traditional mode
2. mark message as deleted
3. message status in the folder view is not updated</description> 
   <pubDate>Thu, 29 Mar 2012 11:49:36 +0000</pubDate> 
   <link>http://bugs.horde.org/ticket/11115#t70971</link> 
  </item> 
   
  <item> 
   <title>This also happens with dynamic view.

IMAP Server: Cyrus I</title> 
   <description>This also happens with dynamic view.

IMAP Server: Cyrus IMAPD 2.4.14</description> 
   <pubDate>Tue, 03 Apr 2012 08:56:27 +0000</pubDate> 
   <link>http://bugs.horde.org/ticket/11115#t71035</link> 
  </item> 
   
  <item> 
   <title>Duplicate of bug #11118?</title> 
   <description>Duplicate of bug #11118?</description> 
   <pubDate>Tue, 03 Apr 2012 09:11:52 +0000</pubDate> 
   <link>http://bugs.horde.org/ticket/11115#t71037</link> 
  </item> 
   
  <item> 
   <title>&gt; Duplicate of bug #11118?

I don't think so. 

This see</title> 
   <description>&gt; Duplicate of bug #11118?

I don't think so. 

This seems to be related to the way cache works. As this happens rarely when cache =&gt; false in backends.php, but it happens really often when cache =&gt; true.  </description> 
   <pubDate>Tue, 03 Apr 2012 09:39:03 +0000</pubDate> 
   <link>http://bugs.horde.org/ticket/11115#t71042</link> 
  </item> 
   
  <item> 
   <title>&gt;&gt; Duplicate of bug #11118?
&gt;
&gt; I don't think so.

Are y</title> 
   <description>&gt;&gt; Duplicate of bug #11118?
&gt;
&gt; I don't think so.

Are you truly using Git master (as opposed to the latest release versions)?</description> 
   <pubDate>Wed, 04 Apr 2012 23:15:58 +0000</pubDate> 
   <link>http://bugs.horde.org/ticket/11115#t71067</link> 
  </item> 
   
  <item> 
   <title>&gt;&gt;&gt; Duplicate of bug #11118?
&gt;&gt;
&gt;&gt; I don't think so.
&gt;
&gt;</title> 
   <description>&gt;&gt;&gt; Duplicate of bug #11118?
&gt;&gt;
&gt;&gt; I don't think so.
&gt;
&gt; Are you truly using Git master (as opposed to the latest release versions)?

And at a minimum, we need the IMAP log of the page access where the unseen count is not being updated correctly.



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 'debug' 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>Wed, 04 Apr 2012 23:18:17 +0000</pubDate> 
   <link>http://bugs.horde.org/ticket/11115#t71068</link> 
  </item> 
   
  <item> 
   <title>&gt;&gt; Are you truly using Git master (as opposed to the latest </title> 
   <description>&gt;&gt; Are you truly using Git master (as opposed to the latest release versions)?

Yes, I am using the latest from Git Master.

&gt; To further debug this issue, we need details of the IMP -&gt; IMAP/POP 
&gt; communication.

I have available protocol logs from Cyrus IMAPD server when cache is enabled in IMP and when cache is disabled.

I can include the logs here with this bug. But I would prefer that these logs are only available to developers.</description> 
   <pubDate>Thu, 05 Apr 2012 12:49:58 +0000</pubDate> 
   <link>http://bugs.horde.org/ticket/11115#t71085</link> 
  </item> 
   
  <item> 
   <title>I have also discussed this bug with Cyrus IMAPD developers. </title> 
   <description>I have also discussed this bug with Cyrus IMAPD developers. In their opinion this might not a problem with Cyrus, but if you use FLAGS.SILENT and don't get an error, you need to update your local cache.

Included is imap-cache.txt: Cache is enabled in IMP and example user does this:
1. Open mailbox
2. Mark message as deleted -&gt; flag change is not shown on the screen
3. Mark message again as deleted -&gt; now message is shown as deleted
4. Mark message as undeleted -&gt; deleted flag is still shown on the screen
5. Mark message as undeleted -&gt; now deleted flag is no longer seen on the screen
6. Logout</description> 
   <pubDate>Thu, 05 Apr 2012 13:20:49 +0000</pubDate> 
   <link>http://bugs.horde.org/ticket/11115#t71088</link> 
  </item> 
   
  <item> 
   <title>You have cleared all your cache files, correct? (See Bug #11</title> 
   <description>You have cleared all your cache files, correct? (See Bug #11118)</description> 
   <pubDate>Thu, 05 Apr 2012 17:11:15 +0000</pubDate> 
   <link>http://bugs.horde.org/ticket/11115#t71099</link> 
  </item> 
   
  <item> 
   <title>&gt; You have cleared all your cache files, correct? (See Bug #</title> 
   <description>&gt; You have cleared all your cache files, correct? (See Bug #11118)

Yes the cache was cleared before testing.</description> 
   <pubDate>Thu, 05 Apr 2012 18:58:59 +0000</pubDate> 
   <link>http://bugs.horde.org/ticket/11115#t71107</link> 
  </item> 
   
  <item> 
   <title>&gt; I have also discussed this bug with Cyrus IMAPD developers</title> 
   <description>&gt; I have also discussed this bug with Cyrus IMAPD developers. In their 
&gt; opinion this might not a problem with Cyrus, but if you use 
&gt; FLAGS.SILENT and don't get an error, you need to update your local 
&gt; cache.

This is already what we do. From Horde_Imap_Client_Socket:

            $this-&gt;_sendLine($cmd);
            $this-&gt;_storeUpdateCache('replace', $options['replace']);
[...]
                    $this-&gt;_sendLine($cmdtmp);
                    $this-&gt;_storeUpdateCache($k, $options[$k]);

If the command executes correctly on the IMAP server ($this-&gt;_sendLine will throw an Exception on a BAD/NO response from the server), the cache is updated with the changes.

It goes without saying that this works fine for me, whether IMAP debugging is turned on or off (this toggles whether FLAGS or FLAGS.SILENT is sent).

&gt; Included is imap-cache.txt: 

There is no imap-cache.txt attached.</description> 
   <pubDate>Thu, 05 Apr 2012 19:10:27 +0000</pubDate> 
   <link>http://bugs.horde.org/ticket/11115#t71108</link> 
  </item> 
   
  <item> 
   <title>&gt;&gt; Included is imap-cache.txt:
&gt;
&gt; There is no imap-cache.</title> 
   <description>&gt;&gt; Included is imap-cache.txt:
&gt;
&gt; There is no imap-cache.txt attached.

There must have been some problem with browser not attaching the file.
</description> 
   <pubDate>Thu, 05 Apr 2012 19:28:27 +0000</pubDate> 
   <link>http://bugs.horde.org/ticket/11115#t71109</link> 
  </item> 
   
  <item> 
   <title>&gt;&gt;&gt; Included is imap-cache.txt:
&gt;&gt;
&gt;&gt; There is no imap-cac</title> 
   <description>&gt;&gt;&gt; Included is imap-cache.txt:
&gt;&gt;
&gt;&gt; There is no imap-cache.txt attached.
&gt;
&gt; There must have been some problem with browser not attaching the file.

Please use IMP's IMAP debugging isntead, as it provides information on caching done by Horde_Imap_Cache.</description> 
   <pubDate>Fri, 06 Apr 2012 20:37:23 +0000</pubDate> 
   <link>http://bugs.horde.org/ticket/11115#t71115</link> 
  </item> 
   
  <item> 
   <title>&gt; Please use IMP's IMAP debugging isntead, as it provides in</title> 
   <description>&gt; Please use IMP's IMAP debugging isntead, as it provides information 
&gt; on caching done by Horde_Imap_Cache.

Here is a summary of testing:
- if I enable debug mode in backends.local.php then the problems disappear and flags are updated correctly
- If I disable debug mode in backends.local.php then the problems reappear and every flag changing operation has to be done twice.

Are the any other differences between these modes in IMAP protocol level other than one uses FLAGS and the other uses FLAGS.SILENT?</description> 
   <pubDate>Fri, 06 Apr 2012 21:04:56 +0000</pubDate> 
   <link>http://bugs.horde.org/ticket/11115#t71118</link> 
  </item> 
   
  <item> 
   <title>Attached is a log from imap session with cache enabled and I</title> 
   <description>Attached is a log from imap session with cache enabled and IMP uses debug mode.</description> 
   <pubDate>Fri, 06 Apr 2012 21:15:33 +0000</pubDate> 
   <link>http://bugs.horde.org/ticket/11115#t71119</link> 
  </item> 
   
  <item> 
   <title>I can verify that if I modify the code to only use FLAGS.SIL</title> 
   <description>I can verify that if I modify the code to only use FLAGS.SILENT (regardless of the debug setting), the flag changes are still correctly saved in the cache.

So this behavior is only being seen on your server, which means you will need to track down the issue further.</description> 
   <pubDate>Mon, 09 Apr 2012 16:13:14 +0000</pubDate> 
   <link>http://bugs.horde.org/ticket/11115#t71133</link> 
  </item> 
   
  <item> 
   <title>&gt; I can verify that if I modify the code to only use FLAGS.S</title> 
   <description>&gt; I can verify that if I modify the code to only use FLAGS.SILENT 
&gt; (regardless of the debug setting), the flag changes are still 
&gt; correctly saved in the cache.
&gt;
&gt; So this behavior is only being seen on your server, which means you 
&gt; will need to track down the issue further.

That is really strange. Do you have a imap trace log so that I would be able to compare the logs.

Which server are you testing against?

</description> 
   <pubDate>Mon, 09 Apr 2012 18:10:18 +0000</pubDate> 
   <link>http://bugs.horde.org/ticket/11115#t71135</link> 
  </item> 
   
  <item> 
   <title>&gt; That is really strange. Do you have a imap trace log so th</title> 
   <description>&gt; That is really strange. Do you have a imap trace log so that I would 
&gt; be able to compare the logs.

Here's a delete action.

&gt;&gt; Timestamp: Mon, 09 Apr 2012 12:16:18 -0600
S: * OK [CAPABILITY IMAP4rev1 LITERAL+ LOGIN-REFERRALS ID ENABLE AUTH=LOGIN XIMAPPROXY] Dovecot ready.
C: [LOGIN Command - username: slusarz]
S: * OK [XPROXYREUSE] IMAP connection reused by squirrelmail-imap_proxy
S: 1 OK User logged in
C: 2 SELECT Testing.AAC (QRESYNC (1255685589 148 50:76,78:103,106))
S: * FLAGS (\Answered \Flagged \Deleted \Seen \Draft impflag0 $Forwarded impflag1)
S: * OK [PERMANENTFLAGS (\Answered \Flagged \Deleted \Seen \Draft impflag0 $Forwarded impflag1 \*)] Flags permitted.
S: * 54 EXISTS
S: * 0 RECENT
S: * OK [UNSEEN 2] First unseen.
S: * OK [UIDVALIDITY 1255685589] UIDs valid
S: * OK [UIDNEXT 107] Predicted next UID
S: * OK [HIGHESTMODSEQ 148] Highest
S: 2 OK [READ-WRITE] Select completed.
&gt;&gt; CACHE: Retrieved messages (mailbox: Testing.AAC; UIDs: 55)
C: 3 UID STORE 55 (UNCHANGEDSINCE 148) +FLAGS.SILENT \deleted
S: * 6 FETCH (UID 55 MODSEQ (149))
S: 3 OK Store completed.
&gt;&gt; CACHE: Retrieved messages (mailbox: Testing.AAC; UIDs: 55)
[NOTE: The below command is the log entry indicating that the flag was successfully updated]
&gt;&gt; CACHE: Stored messages (mailbox: Testing.AAC; UIDs: 55)
[NOTE: And since flags are updated in mailbox, we know that cached search queries are no longer valid so we need to remove those also]
&gt;&gt; Expired search results from cache (mailbox: Testing.AAC)
C: 4 UID SORT RETURN (ALL COUNT) (DATE) US-ASCII ALL
S: * ESEARCH (TAG &quot;4&quot;) UID ALL 50,79,51,80,52,81,53,82,54,83,55,84,56,85,57,86,58,87,59,88,60,89,61,90,62,91,63,92,64,93,65,94,66,95,67,96,68,97,69,98,70,99,71,100,72,101,73,102,74,103,75,78,106,76 COUNT 54
S: 4 OK Sort completed (0.000 secs).
&gt;&gt; Saved search results to cache (mailbox: Testing.AAC; id: 98367107759a917e62e60584c8d69c2f)
C: 5 UID FETCH 50:76,78:103,106 UID (CHANGEDSINCE 147)
S: * 6 FETCH (UID 55 MODSEQ (149))
S: 5 OK Fetch completed.
&gt;&gt; CACHE: Retrieved messages (mailbox: Testing.AAC; UIDs: 55)
C: 6 LOGOUT
S: * OK [CLOSED] Previous mailbox closed.
S: * BYE LOGOUT received
S: 6 OK Completed

Here's the undelete action immediately after:

&gt;&gt; Timestamp: Mon, 09 Apr 2012 12:16:20 -0600
S: * OK [CAPABILITY IMAP4rev1 LITERAL+ LOGIN-REFERRALS ID ENABLE AUTH=LOGIN XIMAPPROXY] Dovecot ready.
C: [LOGIN Command - username: slusarz]
S: * OK [XPROXYREUSE] IMAP connection reused by squirrelmail-imap_proxy
S: 1 OK User logged in
C: 2 SELECT Testing.AAC (QRESYNC (1255685589 149 50:76,78:103,106))
S: * FLAGS (\Answered \Flagged \Deleted \Seen \Draft impflag0 $Forwarded impflag1)
S: * OK [PERMANENTFLAGS (\Answered \Flagged \Deleted \Seen \Draft impflag0 $Forwarded impflag1 \*)] Flags permitted.
S: * 54 EXISTS
S: * 0 RECENT
S: * OK [UNSEEN 2] First unseen.
S: * OK [UIDVALIDITY 1255685589] UIDs valid
S: * OK [UIDNEXT 107] Predicted next UID
S: * OK [HIGHESTMODSEQ 149] Highest
S: 2 OK [READ-WRITE] Select completed.
C: 3 UID STORE 55 (UNCHANGEDSINCE 149) -FLAGS.SILENT \deleted
S: * 6 FETCH (UID 55 MODSEQ (150))
S: 3 OK Store completed.
&gt;&gt; CACHE: Retrieved messages (mailbox: Testing.AAC; UIDs: 55)
[NOTE: Again, this is the updating of the deleted flag in the cache]
&gt;&gt; CACHE: Stored messages (mailbox: Testing.AAC; UIDs: 55)
C: 4 LOGOUT
S: * OK [CLOSED] Previous mailbox closed.
S: * BYE LOGOUT received
S: 4 OK Completed

&gt; Which server are you testing against?

Dovecot (2.1.3), but that should be irrelevant.</description> 
   <pubDate>Mon, 09 Apr 2012 18:19:39 +0000</pubDate> 
   <link>http://bugs.horde.org/ticket/11115#t71136</link> 
  </item> 
   
  <item> 
   <title>The bug was in Cyrus IMAPD and it was fixed in the version 2</title> 
   <description>The bug was in Cyrus IMAPD and it was fixed in the version 2.4.15.

As a workaround I used these settings in backends.local.php:
'cache' =&gt; true,
'debug' =&gt; '/dev/null',
</description> 
   <pubDate>Wed, 18 Apr 2012 12:36:06 +0000</pubDate> 
   <link>http://bugs.horde.org/ticket/11115#t71254</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
