<?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>Broken imap fetch query</title> 
  <pubDate>Sun, 05 Apr 2026 20:15:43 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/11612</link> 
  <atom:link rel="self" type="application/rss+xml" title="Broken imap fetch query" href="https://bugs.horde.org/ticket/11612/rss" /> 
  <description>Broken imap fetch query</description> 
 
   
   
  <item> 
   <title>2012-10-31 10:03:13: (mod_fastcgi.c.2701) FastCGI-stderr: PH</title> 
   <description>2012-10-31 10:03:13: (mod_fastcgi.c.2701) FastCGI-stderr: PHP Fatal error:  Call to undefined method Horde_Imap_Client_Fetch_Results::merge() in /usr/local/horde/horde/framework/Imap_Client/lib/Horde/Imap/Client/Base.php on line 2613</description> 
   <pubDate>Wed, 31 Oct 2012 14:13:59 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/11612#t74233</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git (master):

commit 4526b530db43</title> 
   <description>Changes have been made in Git (master):

commit 4526b530db4352a0ff853ba5a93686f7f889e7dc
Author: Michael M Slusarz &lt;slusarz@horde.org&gt;
Date:   Wed Oct 31 12:43:26 2012 -0600

    Bug #11612: Fix setting data in fetch results object

 .../Imap_Client/lib/Horde/Imap/Client/Base.php     |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

http://git.horde.org/horde-git/-/commit/4526b530db4352a0ff853ba5a93686f7f889e7dc</description> 
   <pubDate>Wed, 31 Oct 2012 18:43:42 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/11612#t74255</link> 
  </item> 
   
  <item> 
   <title>This should fix.  Not used anywhere in imp, so I am assuming</title> 
   <description>This should fix.  Not used anywhere in imp, so I am assuming this is activesync code

FYI: depending on what you are doing with this return, it may be much faster to use STATUS_SYNCFLAGUIDS and/or STATUS_SYNCVANISHED instead - if using Imap_Client&#039;s cache, this methods eliminate 1-2 calls to the remote server.</description> 
   <pubDate>Wed, 31 Oct 2012 18:43:48 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/11612#t74256</link> 
  </item> 
   
  <item> 
   <title>&gt; This should fix.  Not used anywhere in imp, so I am assumi</title> 
   <description>&gt; This should fix.  Not used anywhere in imp, so I am assuming this is 
&gt; activesync code

Yes, this is activesync.

&gt; FYI: depending on what you are doing with this return, it may be much 
&gt; faster to use STATUS_SYNCFLAGUIDS and/or STATUS_SYNCVANISHED instead 
&gt; - if using Imap_Client&#039;s cache, this methods eliminate 1-2 calls to 
&gt; the remote server.

Thanks for the tip. At the point in the code where this is (was) happening, I need to know about new/changed messages as well as vanished messages. For the changed messages I need the actual state of any flags so I don&#039;t think I can use the STAUS_SYNCFLAGUIDS. I might be able to make use of the STATUS_SYNCVANISHED value, as well as tweak other parts of the code where I am only &quot;pinging&quot; the server to check for the existence of a change without needed to know what the change is.</description> 
   <pubDate>Wed, 31 Oct 2012 22:31:54 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/11612#t74276</link> 
  </item> 
   
  <item> 
   <title>&gt;&gt; FYI: depending on what you are doing with this return, it</title> 
   <description>&gt;&gt; FYI: depending on what you are doing with this return, it may be much
&gt;&gt; faster to use STATUS_SYNCFLAGUIDS and/or STATUS_SYNCVANISHED instead
&gt;&gt; - if using Imap_Client&#039;s cache, this methods eliminate 1-2 calls to
&gt;&gt; the remote server.
&gt;
&gt; Thanks for the tip. At the point in the code where this is (was) 
&gt; happening, I need to know about new/changed messages as well as 
&gt; vanished messages. For the changed messages I need the actual state 
&gt; of any flags so I don&#039;t think I can use the STAUS_SYNCFLAGUIDS. I 
&gt; might be able to make use of the STATUS_SYNCVANISHED value, as well 
&gt; as tweak other parts of the code where I am only &quot;pinging&quot; the server 
&gt; to check for the existence of a change without needed to know what 
&gt; the change is.

IIRC, you are not using Imap_Client&#039;s built-in caching?  If no, then these don&#039;t do anything for you (since QRESYNC/CONDSTORE isn&#039;t syncing on mailbox open).

But see Ticket #11590 - If not using Imap_Client&#039;s full caching, there is still an opportunity to take advantage of this.  Namely: creating a custom cache driver that has the known MODSEQ value that can be returned from it.  The mailbox will be sync&#039;d on open, and the flag values can be cached in the custom cache driver so that SYNCFLAGUIDS/VANISHED doesn&#039;t need to hit the server again (the custom cache driver could be an in-memory cache).

I&#039;m probably going to change the internals of Imap_Client soon so that all objects cache - if not given a cache parameter, than FETCH items are only cached for that page access.  However, this won&#039;t take advantage of the fact that you have a MODSEQ value/saved state before even connecting to the mailbox.</description> 
   <pubDate>Wed, 31 Oct 2012 23:07:59 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/11612#t74277</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git (master):

commit a652276d3369</title> 
   <description>Changes have been made in Git (master):

commit a652276d33692a776c13ed9f8efaf65e3c2f7680
Author: Michael M Slusarz &lt;slusarz@horde.org&gt;
Date:   Wed Oct 31 17:13:37 2012 -0600

    If, for some reason, we have MODSEQ but not UIDs, sync anyway
    
    See, e.g., Ticket #11612 - if a custom cache driver is created that only
    stores MODSEQ information, this will allow mailbox to be sync&#039;d and the
    SYNCMODSEQ, SYNCFLAGUIDS, and SYNCVANISHED status items to be populated.

 .../Imap_Client/lib/Horde/Imap/Client/Base.php     |   43 ++++++++++----------
 .../Imap_Client/lib/Horde/Imap/Client/Socket.php   |   11 +++--
 2 files changed, 27 insertions(+), 27 deletions(-)

http://git.horde.org/horde-git/-/commit/a652276d33692a776c13ed9f8efaf65e3c2f7680</description> 
   <pubDate>Wed, 31 Oct 2012 23:17:33 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/11612#t74278</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
