Bug 279331

Summary: Autocompletion of addresses from address book is suboptimal
Product: [Applications] kmail2 Reporter: Albert Astals Cid <aacid>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED UNMAINTAINED    
Severity: normal CC: korossy, mboquien
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Unlisted Binaries   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Albert Astals Cid 2011-08-03 21:55:56 UTC
Version:           unspecified (using KDE 4.7.0) 
OS:                Linux

The autocompletion of addresses from the adress book seems to work in a very strange way (at least compared to kmail 1 behaviour)

Reproducible: Always

Steps to Reproduce:
This is my setup in the address book
* Have one person named Dan XXX
* Have one person named Dani XXX
* Have three people named Daniel XXX

This is what happens when i start kmail from scratch and try to write an email
 * Type d in the To: field (noone is suggested)
 * Type a (da) in the To: field (noone is suggested)
 * Type n (dan) in the To: field (Dan is suggested)
 * Type i (dani) in the To: field (Dani is suggested)
 * Type e (danie) in the To: field (noone is suggested)
 * Type l (daniel) in the To: field (3 Daniel are suggested)
 * Press backspace (danie) in the To: field (3 Daniel are suggested)
 * Press backspace (dani) in the To: field (Dani and 3 Daniel are suggested)
 * Press backspace (dan) in the To: field (Dan, Dani and 3 Daniel are suggested)
 * Press backspace (da) in the To: field (Dan, Dani and 3 Daniel are suggested)
 * Press backspace (d) in the To: field (Dan, Dani and 3 Daniel are suggested)
 * From now on everytime you write a "d" you get all the suggestions


Expected Results:  
I would expect that typing a "d" in the To: field always yields the same results, while at the moment it returns noone or 5 people depending the situation

OS: Linux (x86_64) release 2.6.39-ARCH
Compiler: gcc
Comment 1 Médéric Boquien 2011-08-27 17:32:31 UTC
It may be related to bug #276762 .
Comment 2 Denis Kurz 2016-09-24 18:24:17 UTC
This bug has only been reported for versions before 4.14, which have been unsupported for at least two years now. Can anyone tell if this bug still present?

If noone confirms this bug for a Framework-based version of kmail2 (version 5.0 or later, as part of KDE Applications 15.12 or later), it gets closed in about three months.
Comment 3 Denis Kurz 2017-01-07 22:51:12 UTC
Just as announced in my last comment, I close this bug. If you encounter it again in a recent version (at least 5.0 aka 15.08), please open a new one unless it already exists. Thank you for all your input.