6.0.0-beta1
10/20/25

[#1900] Expand names dropping valid addresses in certain cases
Summary Expand names dropping valid addresses in certain cases
Queue IMP
Queue Version 4.0.3
Type Bug
State Resolved
Priority 2. Medium
Owners chuck (at) horde (dot) org
Requester kevin_myer (at) iu13 (dot) org
Created 05/02/2005 (7476 days ago)
Due
Updated 05/18/2005 (7460 days ago)
Assigned 05/18/2005 (7460 days ago)
Resolved 05/18/2005 (7460 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
05/18/2005 08:53:22 PM Chuck Hagenbuch Comment #8
State ⇒ Resolved
Reply to this comment
I don't think there's any good way to support tab autoexpansion on all 
of the various expand_names-created fields at the moment. The whole 
thing is a bit of a mess, though, and it'd be good to clean it up 
further.



I'm going to mark this ticket as resolved since the bug is gone. 
Further enhancements certainly aren't ruled out though.
05/18/2005 08:05:56 PM kevin_myer (at) iu13 (dot) org Comment #7 Reply to this comment
I'm not dropping addresses anymore.



I'm still a little unclear on what the "right" behavior of Tab Auto 
Expand is.  If I type a unique name, I can tab autoexpand as many 
times as I want in a field.



If I Expand Names, I can use tab autoexpansion in the CC and BCC 
fields, but not in the To field anymore.



So unique name?  Tab autoexpansion continues to work in field.   
Ambiguous name?  It wont' work anymore..  Is that right?
05/18/2005 06:53:24 PM Chuck Hagenbuch Comment #6
State ⇒ Feedback
Reply to this comment
This should be fixed now; please test since I wasn't seeing each 
variant of this. Here's the FRAMEWORK_3 version of the patch:



http://cvs.horde.org/diff.php/imp/compose.php?r1=2.800.2.24&r2=2.800.2.25&ty=u
05/17/2005 10:25:17 PM Chuck Hagenbuch Comment #5
Assigned to Chuck Hagenbuch
Taken from Jan Schneider
Taken from Horde DevelopersHorde Developers
Reply to this comment
I see it now too, using a different test case:



1. Enter "won't be found", "unique".

2. Hit Expand Names

3. Watch the nonexistant one disappear.
05/17/2005 05:58:47 PM Jan Schneider Comment #4
Assigned to Jan Schneider
State ⇒ Assigned
Taken from Chuck Hagenbuch
Reply to this comment
I can reproduce this.
05/17/2005 05:47:00 PM Chuck Hagenbuch Comment #3
State ⇒ Feedback
Priority ⇒ 2. Medium
Reply to this comment
I am unable to reproduce this with both HEAD and FRAMEWORK_3. Kevin, 
any chance you can try the latest FRAMEWORK_3 code, or alternately get 
me a test account and access to your Horde install?
05/14/2005 03:56:32 AM Chuck Hagenbuch Assigned to Chuck Hagenbuch
 
05/03/2005 07:39:13 AM Jan Schneider Assigned to Horde DevelopersHorde Developers
State ⇒ Assigned
 
05/02/2005 10:21:37 PM kevin_myer (at) iu13 (dot) org Comment #2 Reply to this comment
Also, the wording on the drop-down menu of addresses returned from the 
Expand Names execution has caused more than a few chuckles here (no 
offense to Chuck ;)



Instead of: "Please select or edit right next:", how about "Click to 
select address or edit entry to the right -->".  Wordier, but much 
more clear.  Maybe "Click to select, or modify entry to the right:" ??
05/02/2005 10:16:55 PM kevin_myer (at) iu13 (dot) org Comment #1
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ Expand names dropping valid addresses in certain cases
Queue ⇒ IMP
State ⇒ Unconfirmed
Reply to this comment
Probably exists in HEAD too, since the code for expanding names in 
4.0.3 is a MFH.  For our installation, address expansion is set to 
search our LDAP directory server (name and email) and localsql (name 
and email).



The following general test case should trigger the bug:



1)  Compose a new message.

2)   In the To: field, enter three or more addresses.  Make sure that 
at least two of the entries are unique enough so that they would 
return an email address, and the third is ambigious

3)  Expand Names

4)  Select the ambigous address from the list



The bug is between steps three and four - essentially, one or more of 
the good addresses is lost altogether.



For a specific example:



Compose message.  In To:, enter Unique Name1, Unique Name2, Ambigous.   
Hit Tab, to autoexpand (not strictly necessary but this is the process 
our users are accustomed to).  Click the Expand Names icon.  Either 
Unique Name 1, or Unique Name 2 will expand to an email address, but 
one of the unique names will disappear.  The Ambigous name will 
generate a drop down of all matches.







If in the above test case scenario, you use Unique Name1, Unique 
Name2, Bogus-Name-that-matches-nothing, the resulting error message is 
somewhat confusing.  Instead of returning a message that states 
"Please resolve ambigious or invalid messages", if the # of matching 
addresses is zero, return "No entries were found that match your 
search criteria" or something to that effect.



As an aside, suppose I do the above, and end up with the one good 
address, and a disappeared good address.  I also have a line with my 
Bogus-Name-that-matches-nothing entry.  Suppose I see that I had a 
typo and I change that line to be Good-Name-that-matches-something.  I 
want to tab-auto-expand to expand that name.  I have to first click 
outside the form, then back in the portion of the To: form where the 
previously bad address was and then Tab works.  Do I need to do that 
to reset the tab autoexpansion?  Is it a limitation of 
javascript/forms, or IMP bug?

Saved Queries