Bug 86292 - ldap name lookup problems(autocompletion problem)
Summary: ldap name lookup problems(autocompletion problem)
Status: RESOLVED FIXED
Alias: None
Product: kmail
Classification: Applications
Component: composer (show other bugs)
Version: 1.6.82
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-30 15:52 UTC by kek had
Modified: 2007-09-14 12:17 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Kaddressbook ldap configuration (42.74 KB, image/jpeg)
2004-11-22 16:01 UTC, jstalnak
Details
Kaddressbook ldap settings (15.01 KB, image/jpeg)
2004-11-22 16:03 UTC, jstalnak
Details
Successful lookup via Kaddressbook ldap using name as filter (36.83 KB, image/jpeg)
2004-11-22 16:04 UTC, jstalnak
Details
Successful lookup via Kaddressbook ldap using uid as filter (36.77 KB, image/jpeg)
2004-11-22 16:14 UTC, jstalnak
Details
Kmail imput settings (12.25 KB, image/jpeg)
2004-11-22 16:14 UTC, jstalnak
Details
Kmail test completiong settings (12.14 KB, image/jpeg)
2004-11-22 16:15 UTC, jstalnak
Details
Kmail completiong (13.60 KB, image/jpeg)
2004-11-22 16:15 UTC, jstalnak
Details
Kmail completion works for Kaddressbook/recent addresses (66.04 KB, image/jpeg)
2004-11-22 16:16 UTC, jstalnak
Details
Kmail completion failure using uid (60.12 KB, image/jpeg)
2004-11-22 16:16 UTC, jstalnak
Details
Kmail completion failure using name (59.81 KB, image/jpeg)
2004-11-22 16:17 UTC, jstalnak
Details

Note You need to log in before you can comment on or make changes to this bug.
Description kek had 2004-07-30 15:52:02 UTC
Version:           1.6.82 (using KDE 3.2.92 (3.3 beta2), SuSE)
Compiler:          gcc version 3.3.1 (SuSE Linux)
OS:                Linux (i686) release 2.6.6_keyhan

The autocompletion of e-mail addresses from ldap-server doesn't work properly. KMail tries to autocomplete addresses that are stored locally in the address book, and some times it actually starts to look up in ldap as well but the behavior is very random. It seems as if the ldap searches are shown randomly. This was not the case in the ealier release in KDE 3.2.3, so I beleive this is a new bug.

Regards
K.H
Comment 1 Jim Reiss 2004-10-07 23:39:56 UTC
It appears that some of the autocompletion problems are due to changes in the search mechanism.  Observation of behavior suggests that the lookup is using the display name, is intolerant of white space, and only looks at the start of the name.  So, for example you might be used to looking up someone by his or her first name.  If your LDAP display names start with the last name, the search will not find who you're looking for.  If the display name starts with one or more spaces (this can be done if you're trying to have some names sort higher in Outlook) then the search may also fail because your search string doesn't have the leading space(s).
Comment 2 jeff pitman 2004-10-27 16:50:20 UTC
I was going to open up a new bug, but just decided to comment on this one to bring it all together.  With the new KDE 3.3.1, LDAP auto-completion still continues to exhibit serious problems.  If not even worse than it was during the 3.2 series release.

Now names entered such as:

Lastn

Do not produce the list it once did before:

    "Lastname, Firstname" <Firstname.Lastname@example.com>

Now, it produces no results.

Instead, if I type:

"Lastn

I immediately get:

    ""Lastname, Firstname"" <Firstname.Lastname@example.com>

Which is an invalid email address (RFC 822).

In the 3.3.0 release of KDE, I would get wierd results:

    ""Firstname"" <Firstname.Lastname@example.com>

I tried all sorts of different combinations of using local cache and not using local cache and online/offline use, etc.  All exhibit the same flaws.

Hope this gets fixed soon.
Comment 3 ian 2004-10-29 10:31:03 UTC
Although I was looking to add a new bug, commenting on this one seems more appropriate.

I have this behaviour in KMail 1.7, distributed as part of the kdepim3-3.3.0 SuSE rpm package.  Address lookups (searches) used to work on first and last names up until KDE 3.2, and there it worked well, all be it a little too fast.

Since KDE 3.3, the searches do not work properly any more.  They seem now only to work based on last name, ignoring the first name.  The sorting of the results also seems completely senceless.

The behaviour that I expected was that searches would work on both first and last names.  Sorting should be the same as it was with KMail in KDE 3.2.
Comment 4 David Faure 2004-10-29 12:14:16 UTC
Searching on last name is implemented in addresseelineedit.cpp in the proko2 branch, but the patch was rejected for KDE_3_3_BRANCH (or HEAD)...

The ordering is configurable in proko2 branch, and in HEAD.
Comment 5 Pascal Cavy 2004-11-08 18:24:04 UTC
*** This bug has been confirmed by popular vote. ***
Comment 6 jstalnak 2004-11-22 16:01:41 UTC
Created attachment 8368 [details]
Kaddressbook ldap configuration
Comment 7 jstalnak 2004-11-22 16:03:15 UTC
Created attachment 8369 [details]
Kaddressbook ldap settings
Comment 8 jstalnak 2004-11-22 16:04:25 UTC
Created attachment 8370 [details]
Successful lookup via Kaddressbook ldap using name as filter
Comment 9 jstalnak 2004-11-22 16:14:19 UTC
Created attachment 8371 [details]
Successful lookup via Kaddressbook ldap using uid as filter
Comment 10 jstalnak 2004-11-22 16:14:50 UTC
Created attachment 8372 [details]
Kmail imput settings
Comment 11 jstalnak 2004-11-22 16:15:09 UTC
Created attachment 8373 [details]
Kmail test completiong settings
Comment 12 jstalnak 2004-11-22 16:15:27 UTC
Created attachment 8374 [details]
Kmail completiong
Comment 13 jstalnak 2004-11-22 16:16:00 UTC
Created attachment 8375 [details]
Kmail completion works for Kaddressbook/recent addresses
Comment 14 jstalnak 2004-11-22 16:16:36 UTC
Created attachment 8376 [details]
Kmail completion failure using uid
Comment 15 jstalnak 2004-11-22 16:17:00 UTC
Created attachment 8377 [details]
Kmail completion failure using name
Comment 16 David Faure 2004-11-22 16:23:56 UTC
> Successful lookup via Kaddressbook ldap using name as filter
?? What does this have to do with the autocompletion?

What's the point with those screenshots? I think we know what needs to be done now...

Comment 17 jstalnak 2004-11-22 19:00:25 UTC
Damn - for some reason the text of my comments, which should have preceeded those screen shots, did not post to the bug.  I wanted kmail devs to see that the latest 1.7.1 kmail on my SuSE 9.1, KDE 3.3.1 installation exhibits continue ldap lookup problems.  Those screenshots show kaddressbook's config and correctly functioning and kmail 1.7.1's ldap lookup/auto-complete failure.  Perhaps this was overkill, but as the bug texts for #92874 and this one neither specifically address the behavior I see (no ldap lookup from withing kmail rather than partical or intermittent), yet both seem in some ways pertinent, I decided to post here.  If that was in error, I apologize.  Please tell me and if YOU think it's warranted, I'll create a new bug report
Comment 18 Pascal Cavy 2004-12-27 11:05:15 UTC
As of :

KDE Version 1.7.2 (KDE 3.3.2, Mandrake Linux Cooker i586 - Cooker)
Application E-Mail Client
Operating System Linux (i686) release 2.6.8.1-20mdk
Compiler gcc version 3.4.3 (Mandrakelinux 10.2 3.4.3-1mdk)

it is working again, thanks.
Comment 19 jeff pitman 2004-12-27 12:35:06 UTC
Confirmed working in kde-redhat.org packages (3.3.2).  Thanks for all your work!!!
Comment 20 Tom Albers 2004-12-27 14:05:49 UTC
Great! Closing.
Comment 21 David Faure 2005-02-10 15:58:20 UTC
CVS commit by faure: 

Merge from proko2 branch: completion on last name and email address, and fix for wrong weights
when the same email comes from multiple sources: we want to MAX the weights, not to add them.
BUG: 98691
CCBUG: 86292


  M +64 -4     addresseelineedit.cpp   1.37
  M +3 -0      addresseelineedit.h   1.23