<?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>Expand Address in IMP compose does not work correctly with IMSP</title> 
  <pubDate>Fri, 10 Apr 2026 00:02:42 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/1256</link> 
  <atom:link rel="self" type="application/rss+xml" title="Expand Address in IMP compose does not work correctly with IMSP" href="https://bugs.horde.org/ticket/1256/rss" /> 
  <description>Expand Address in IMP compose does not work correctly with IMSP</description> 
 
   
   
  <item> 
   <title>The &#039;Expand Address&#039; feature of the IMP 4.0 compose window d</title> 
   <description>The &#039;Expand Address&#039; feature of the IMP 4.0 compose window does not work correctly when using an IMSP address book. 



What I Do When This Doesn&#039;t Work:



I set the IMP preference in Options -&gt; Address Books to use the IMSP address book and have tried searching based on &#039;Alias&#039;.  When I enter an alias in the To field of a compose window, click &#039;Expand Names&#039;,  the &#039;Please resolve ambiguous or invalid addresses&#039; error message is displayed with a drop-down menu of all the addresses in my IMSP address book.  I&#039;m using a unique Alias when doing this so there should only be one match.  IMSP searching works fine in Turba.



I turned up the logging for PHP and PEAR and when performing IMSP searches using the &#039;Expand Names&#039; link, a search using the &#039;name&#039; field and the search criteria of &#039;*&#039; is performed instead of the field &#039;alias&#039; I have set in the preferences and the alias I provide in the To field.



Example log output:



Jan 26 23:38:42 HORDE [debug] [imsp] From: * OK Cyrus IMSP version 1.7b ready [on line 250 of &quot;/opt/local/apache/htdocs/mail/lib/Net/IMSP.php&quot;]

Jan 26 23:38:42 HORDE [debug] [imsp] Initializing Net_IMSP object. [on line 108 of &quot;/opt/local/apache/htdocs/mail/lib/Net/IMSP.php&quot;]

Jan 26 23:38:42 HORDE [debug] [imsp] To: A0001 LOGIN  [on line 220 of &quot;/opt/local/apache/htdocs/mail/lib/Net/IMSP.php&quot;]

Jan 26 23:38:42 HORDE [debug] [imsp] To: sbraswe1  [on line 220 of &quot;/opt/local/apache/htdocs/mail/lib/Net/IMSP.php&quot;]

Jan 26 23:38:42 HORDE [debug] [imsp] From: A0001 OK User `sbraswe1&#039; Logged in [on line 250 of &quot;/opt/local/apache/htdocs/mail/lib/Net/IMSP.php&quot;]

Jan 26 23:38:43 HORDE [debug] [imsp] Net_IMSP_Book initialized. [on line 90 of &quot;/opt/local/apache/htdocs/mail/lib/Net/IMSP/Book.php&quot;]

Jan 26 23:38:43 HORDE [debug] [imsp] To: A0002 ADDRESSBOOK *^M

 [on line 220 of &quot;/opt/local/apache/htdocs/mail/lib/Net/IMSP.php&quot;]

Jan 26 23:38:43 HORDE [debug] [imsp] From: * ADDRESSBOOK () &quot;.&quot; sbraswe1 [on line 250 of &quot;/opt/local/apache/htdocs/mail/lib/Net/IMSP.php&quot;]

Jan 26 23:38:43 HORDE [debug] [imsp] From: A0002 OK addressbook completed [on line 250 of &quot;/opt/local/apache/htdocs/mail/lib/Net/IMSP.php&quot;]

Jan 26 23:38:43 HORDE [debug] [imsp] ADDRESSBOOK command OK. [on line  of &quot;&quot;]

Jan 26 23:38:43 HORDE [debug] [imsp] Net_IMSP_Book initialized. [on line 90 of &quot;/opt/local/apache/htdocs/mail/lib/Net/IMSP/Book.php&quot;]

Jan 26 23:38:43 HORDE [debug] [imsp] To: A0003 SEARCHADDRESS  [on line 220 of &quot;/opt/local/apache/htdocs/mail/lib/Net/IMSP.php&quot;]

Jan 26 23:38:43 HORDE [debug] [imsp] To: sbraswe1 [on line 220 of &quot;/opt/local/apache/htdocs/mail/lib/Net/IMSP.php&quot;]

Jan 26 23:38:43 HORDE [debug] [imsp] To:  name  [on line 220 of &quot;/opt/local/apache/htdocs/mail/lib/Net/IMSP.php&quot;]

Jan 26 23:38:43 HORDE [debug] [imsp] To: {1}^M

 [on line 220 of &quot;/opt/local/apache/htdocs/mail/lib/Net/IMSP.php&quot;]

Jan 26 23:38:43 HORDE [debug] [imsp] From: + go [on line 250 of &quot;/opt/local/apache/htdocs/mail/lib/Net/IMSP.php&quot;]

Jan 26 23:38:43 HORDE [debug] [imsp] To: *^M

 [on line 220 of &quot;/opt/local/apache/htdocs/mail/lib/Net/IMSP.php&quot;]

Jan 26 23:38:43 HORDE [debug] [imsp] From: * SEARCHADDRESS &quot;Alison Creech&quot; [on line 250 of &quot;/opt/local/apache/htdocs/mail/lib/Net/IMSP.php&quot;]

Jan 26 23:38:43 HORDE [debug] [imsp] From: * SEARCHADDRESS &quot;Alison Parsons&quot; [on line 250 of &quot;/opt/local/apache/htdocs/mail/lib/Net/IMSP.php&quot;]



...and the rest of my addresses are searched for and fetched.



The logs for searching while in Turba are the similar except the search field and criteria that I provide are used, as expected, and only the results for that match are returned.



I can provide additional logging data and setup information if needed.  This is a high priority for me, since I have users mad at me, but I set it low here since IMSP is new to this version of the project.</description> 
   <pubDate>Thu, 27 Jan 2005 05:05:49 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/1256#t4931</link> 
  </item> 
   
  <item> 
   <title>The following patch should fix this...</title> 
   <description>The following patch should fix this...</description> 
   <pubDate>Fri, 28 Jan 2005 05:32:23 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/1256#t4964</link> 
  </item> 
   
  <item> 
   <title>Mike:



The patch worked great!  Thanks for the fast respon</title> 
   <description>Mike:



The patch worked great!  Thanks for the fast response.



There is one related issue that still exists that I forgot to mention before.  The searching of multiple fields as defined by the user in Options -&gt; Address Books in IMP still doesn&#039;t work.  The address expansion in the compose window of IMP seems to only search on the first field selected in the list.  For example, if I select both the &#039;Name&#039; and &#039;Alias&#039; fields and search for an alias that won&#039;t match a name, I receive no matches since name is higher in the selection list.  It, of course, works as expected if only one field is selected.



Let me know if you have any questions or require additional information.  Thanks for your help.</description> 
   <pubDate>Fri, 28 Jan 2005 06:13:08 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/1256#t4965</link> 
  </item> 
   
  <item> 
   <title>Here&#039;s my comment from the mailing list again:



The patch </title> 
   <description>Here&#039;s my comment from the mailing list again:



The patch is wrong. &#039;lastname&#039; is the sort field, $criteria contains a list of search

criteria that need to get OR&#039;ed.</description> 
   <pubDate>Fri, 28 Jan 2005 10:24:32 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/1256#t4970</link> 
  </item> 
   
  <item> 
   <title>Sorry Jan,  I was  thinking it was similar to the problem I </title> 
   <description>Sorry Jan,  I was  thinking it was similar to the problem I had with minisearch.php.



To reiterate here what I posted to the dev list - IMSP protocol doesn&#039;t natively  support doing  &#039;OR&#039; searches (or &#039;AND&#039; searches either for that matter - that was just easier to fix)  so this fix will have to wait until I can implement the logic for an &#039;OR&#039; search in the driver code itself .  



This also explains the other problem you are experiencing with only the first search term being used.  I&#039;ll move this one up to the top of my list and get a  fix out as soon as possible.</description> 
   <pubDate>Fri, 28 Jan 2005 15:43:00 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/1256#t4984</link> 
  </item> 
   
  <item> 
   <title>Ok.  This patch properly fixes the problems described here. </title> 
   <description>Ok.  This patch properly fixes the problems described here. 



The driver now makes up for the imsp protocol&#039;s lack of &#039;AND&#039; and &#039;OR&#039; searches by  implementing them here...



Hope this helps...</description> 
   <pubDate>Mon, 31 Jan 2005 05:24:10 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/1256#t5052</link> 
  </item> 
   
  <item> 
   <title>Committed to CVS HEAD for now.</title> 
   <description>Committed to CVS HEAD for now.</description> 
   <pubDate>Mon, 31 Jan 2005 09:36:56 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/1256#t5057</link> 
  </item> 
   
  <item> 
   <title>The imsp.php patch seems to be working great.  Thanks!</title> 
   <description>The imsp.php patch seems to be working great.  Thanks!</description> 
   <pubDate>Sat, 05 Feb 2005 00:17:51 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/1256#t5214</link> 
  </item> 
   
  <item> 
   <title>I&#039;ve merged these and other IMSP fixes. Resolving.</title> 
   <description>I&#039;ve merged these and other IMSP fixes. Resolving.</description> 
   <pubDate>Sat, 05 Feb 2005 04:21:14 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/1256#t5215</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
