<?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>Favourites driver matches all email address searches</title> 
  <pubDate>Fri, 10 Apr 2026 09:20:57 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/11207</link> 
  <atom:link rel="self" type="application/rss+xml" title="Favourites driver matches all email address searches" href="https://bugs.horde.org/ticket/11207/rss" /> 
  <description>Favourites driver matches all email address searches</description> 
 
   
   
  <item> 
   <title>I have Imp 5.0.21 (just upgraded a couple of days ago, inclu</title> 
   <description>I have Imp 5.0.21 (just upgraded a couple of days ago, including clearing
cache etc). No other changes on the server in recent weeks.

In my Imp preferences, the following is set:

Block images in messages unless they are specifically requested? - YES

Automatically show images in messages when the sender is in my address
book? - YES

Imp no longer asks if I want to show blocked images (both Traditional
and Dynamic), but shows all HTML images for ALL emails, regardless of
whether the sender is in my address book. I have tried from a PC and my
iPad - both the same.

Did something change?
</description> 
   <pubDate>Fri, 01 Jun 2012 11:21:43 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/11207#t71478</link> 
  </item> 
   
  <item> 
   <title>Beside that, it looks like address book lookups haven&#039;t been</title> 
   <description>Beside that, it looks like address book lookups haven&#039;t been used for 20 months without anyone noticing. Unless I&#039;m missing something. AFAIC address book lookups have been (accidentally) removed in commit 91ffa129ee86b75d506351e1d6ac66e921676273.</description> 
   <pubDate>Mon, 04 Jun 2012 12:21:13 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/11207#t71497</link> 
  </item> 
   
  <item> 
   <title>&gt; Beside that, it looks like address book lookups haven&#039;t be</title> 
   <description>&gt; Beside that, it looks like address book lookups haven&#039;t been used for 
&gt; 20 months without anyone noticing. Unless I&#039;m missing something. 
&gt; AFAIC address book lookups have been (accidentally) removed in commit 
&gt; 91ffa129ee86b75d506351e1d6ac66e921676273.

Addressbook lookups occur in IMP_Ui_Imageview::showInlineImage().

_inAddressBook() is dead code, but that has been known for awhile.  I have never seen a need to remove it in IMP 5 though (it was long ago removed in IMP 6).</description> 
   <pubDate>Mon, 04 Jun 2012 20:21:09 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/11207#t71515</link> 
  </item> 
   
  <item> 
   <title>&gt; Did something change?

No.</title> 
   <description>&gt; Did something change?

No.</description> 
   <pubDate>Mon, 04 Jun 2012 20:22:29 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/11207#t71516</link> 
  </item> 
   
  <item> 
   <title>&gt;&gt; Did something change?
&gt;
&gt; No.

With respect to 5.0.20</title> 
   <description>&gt;&gt; Did something change?
&gt;
&gt; No.

With respect to 5.0.20 -&gt; 5.0.21.</description> 
   <pubDate>Mon, 04 Jun 2012 20:30:23 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/11207#t71518</link> 
  </item> 
   
  <item> 
   <title>&gt;&gt;&gt; Did something change?
&gt;&gt;
&gt;&gt; No.
&gt;
&gt; With respect to </title> 
   <description>&gt;&gt;&gt; Did something change?
&gt;&gt;
&gt;&gt; No.
&gt;
&gt; With respect to 5.0.20 -&gt; 5.0.21.

I don&#039;t usually believe in coincidences... 

Ever since running Horde I have had images blocked in HTML emails, with the exception of a couple of regular HTML newsletters that I get, which I have added to the Address Book so that I don&#039;t have to click on Show Blocked Iimages for these emails that I trust. 

I.e. this is not something new that I am playing with...

I upgraded to 5.0.21, and the next day I noticed that images are not being blocked any more. Nothing else was changed on that server at that time. 

What would be great would be some help on working out why it is doing it now all of a sudden, apparently coincidentally  :-/</description> 
   <pubDate>Mon, 04 Jun 2012 22:23:21 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/11207#t71521</link> 
  </item> 
   
  <item> 
   <title>I tried unsetting the pref, saving it, and logging out. Logg</title> 
   <description>I tried unsetting the pref, saving it, and logging out. Logged back in, and the preference was correctly still set as not ticked. As expected at that point, all images download without prompting for blocked images.

I then ticked the preference to block emails, logged out, and logged back in, and the preference again had correctly been retained. However, actual behaviour in Imp remains incorrect - all images are still downloaded. 

The preference appears to be correctly maintained, but Imp is ignoring it.</description> 
   <pubDate>Mon, 04 Jun 2012 22:44:01 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/11207#t71522</link> 
  </item> 
   
  <item> 
   <title>There is nothing wrong with the preferences.  And I have ver</title> 
   <description>There is nothing wrong with the preferences.  And I have verified multiple times that nothing has changed in IMP 5 relating to the image viewing code.

On my system, however, something appears broken with the Turba getField API call.  It matches ALL entries in the favourites table, even if those emails do not match the search query (the matches are not even close).  The query being run is this:

Array
(
    [AND] =&gt; Array
        (
            [0] =&gt; Array
                (
                    [field] =&gt; email
                    [op] =&gt; =
                    [test] =&gt; foo@example.com
                )
        )
)

Two problems with this query:
1) The code in the Favourites driver does not handle the &#039;=&#039; op, only the LIKE op.
2) Any AND query that doesn&#039;t match will be considered as &quot;found&quot; and will be returned. (That&#039;s why the absence of the &#039;=&#039; op constititues matching).

Thus any email address, if querying the favourites addressbook, will ALWAYS be considered matched AFAICT.  No idea if this is your issue and, if so, why it suddenly started when upgrading only IMP.</description> 
   <pubDate>Mon, 04 Jun 2012 23:08:38 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/11207#t71523</link> 
  </item> 
   
  <item> 
   <title>We no longer use contacts/getField API call in IMP 6, so thi</title> 
   <description>We no longer use contacts/getField API call in IMP 6, so this is not an issue there (we use contacts/search).</description> 
   <pubDate>Mon, 04 Jun 2012 23:10:01 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/11207#t71524</link> 
  </item> 
   
  <item> 
   <title>&gt; There is nothing wrong with the preferences.  And I have v</title> 
   <description>&gt; There is nothing wrong with the preferences.  And I have verified 
&gt; multiple times that nothing has changed in IMP 5 relating to the 
&gt; image viewing code.
&gt;
&gt; On my system, however, something appears broken with the Turba 
&gt; getField API call.  It matches ALL entries in the favourites table, 
&gt; even if those emails do not match the search query (the matches are 
&gt; not even close).  The query being run is this:
&gt;
&gt; Array
&gt; (
&gt;     [AND] =&gt; Array
&gt;         (
&gt;             [0] =&gt; Array
&gt;                 (
&gt;                     [field] =&gt; email
&gt;                     [op] =&gt; =
&gt;                     [test] =&gt; foo@example.com
&gt;                 )
&gt;         )
&gt; )
&gt;
&gt; Two problems with this query:
&gt; 1) The code in the Favourites driver does not handle the &#039;=&#039; op, only 
&gt; the LIKE op.
&gt; 2) Any AND query that doesn&#039;t match will be considered as &quot;found&quot; and 
&gt; will be returned. (That&#039;s why the absence of the &#039;=&#039; op constititues 
&gt; matching).
&gt;
&gt; Thus any email address, if querying the favourites addressbook, will 
&gt; ALWAYS be considered matched AFAICT.  No idea if this is your issue 
&gt; and, if so, why it suddenly started when upgrading only IMP.

Aha, progress...

Unselect &quot;Automatically show images in messages when the sender is in my address book?&quot; and it works again. 

So you are spot-on, it is matching everything as being in the address book.</description> 
   <pubDate>Tue, 05 Jun 2012 01:15:56 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/11207#t71525</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git (master):

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

commit db87df86571a87ed8c0ef19826e13caae939935a
Author: Jan Schneider &lt;jan@horde.org&gt;
Date:   Tue Jun 5 11:06:27 2012 +0200

    Correctly build AND queries, implement strict searching (Bug #11207).

 turba/docs/CHANGES              |    1 +
 turba/lib/Driver/Favourites.php |   57 ++++++++++++++++++++++++++------------
 turba/package.xml               |    4 +-
 3 files changed, 42 insertions(+), 20 deletions(-)

http://git.horde.org/horde-git/-/commit/db87df86571a87ed8c0ef19826e13caae939935a</description> 
   <pubDate>Tue, 05 Jun 2012 09:07:18 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/11207#t71528</link> 
  </item> 
   
  <item> 
   <title>Wow... Impressively quick fix.

Thanks, will chuck that in</title> 
   <description>Wow... Impressively quick fix.

Thanks, will chuck that in and confirm.  </description> 
   <pubDate>Tue, 05 Jun 2012 10:17:19 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/11207#t71531</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git (develop):

commit db87df86571</title> 
   <description>Changes have been made in Git (develop):

commit db87df86571a87ed8c0ef19826e13caae939935a
Author: Jan Schneider &lt;jan@horde.org&gt;
Date:   Tue Jun 5 11:06:27 2012 +0200

    Correctly build AND queries, implement strict searching (Bug #11207).

 turba/docs/CHANGES              |    1 +
 turba/lib/Driver/Favourites.php |   57 ++++++++++++++++++++++++++------------
 turba/package.xml               |    4 +-
 3 files changed, 42 insertions(+), 20 deletions(-)

http://git.horde.org/horde-git/-/commit/db87df86571a87ed8c0ef19826e13caae939935a</description> 
   <pubDate>Tue, 05 Jun 2012 19:49:53 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/11207#t71537</link> 
  </item> 
   
  <item> 
   <title>FWIW, this would have first been seen as broken in IMP 5.0.2</title> 
   <description>FWIW, this would have first been seen as broken in IMP 5.0.20, not 5.0.21, since we switched to exact address searching after 5.0.19.  So upgrading from 5.0.20-&gt;5.0.21 would not have changed anything:

commit 1e26935a7c16a327f1c60e43bf00a100ab48bfda
Author: Michael M Slusarz &lt;slusarz@horde.org&gt;
Date:   Tue Mar 6 12:56:06 2012 -0700

    This should be an exact address search

-----

slusarz@bigworm % git show imp-5.0.20
tag imp-5.0.20
Tagger: Jan Schneider &lt;jan@horde.org&gt;
Date:   Wed Apr 11 12:36:58 2012 +0200

Released imp-5.0.20.</description> 
   <pubDate>Wed, 06 Jun 2012 20:52:05 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/11207#t71546</link> 
  </item> 
   
  <item> 
   <title>Noted... looking in my upgrade records, my last Imp u/g was </title> 
   <description>Noted... looking in my upgrade records, my last Imp u/g was to 5.0.19, i.e. I skipped .20, which I should have checked and made clear in my original post. 

&gt; FWIW, this would have first been seen as broken in IMP 5.0.20, not 
&gt; 5.0.21, since we switched to exact address searching after 5.0.19.  
&gt; So upgrading from 5.0.20-&gt;5.0.21 would not have changed anything:
&gt;
&gt; commit 1e26935a7c16a327f1c60e43bf00a100ab48bfda
&gt; Author: Michael M Slusarz &lt;slusarz@horde.org&gt;
&gt; Date:   Tue Mar 6 12:56:06 2012 -0700
&gt;
&gt;     This should be an exact address search
&gt;
&gt; -----
&gt;
&gt; slusarz@bigworm % git show imp-5.0.20
&gt; tag imp-5.0.20
&gt; Tagger: Jan Schneider &lt;jan@horde.org&gt;
&gt; Date:   Wed Apr 11 12:36:58 2012 +0200
&gt;
&gt; Released imp-5.0.20.
</description> 
   <pubDate>Fri, 08 Jun 2012 03:27:21 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/11207#t71549</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
