Bug 388845 - Not all contacts found when adding recipients to an E-Mail
Summary: Not all contacts found when adding recipients to an E-Mail
Status: RESOLVED WORKSFORME
Alias: None
Product: kmail2
Classification: Applications
Component: composer (show other bugs)
Version: 5.7.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-01-12 05:36 UTC by Christian Quast
Modified: 2022-12-15 05:14 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Quast 2018-01-12 05:36:45 UTC
This is probably a bug in Akonadi rather than in KMail but for a user using KMail it seem to be bug in KMail. Feel free to assign this bug to Akonadi if appropriate.

KMail / Akonadi is not able to find all contacts in my address books when adding recipients to an E-Mail. 

* add an address book and add multiple contacts that share some letters
* write a new E-Mail
* start typing in the recipient field

I would expect to find all contacts starting with / containing the letters already entered into the recipient field. 

Instead, only a random subset (mostly only one) is returned.


For example: I have two contacts with first names 'Marc' and 'Markus' in the same address book but only 'Markus' is suggest for completion when entering 'Mar' into the recipient field of KMail's composer. For other combinations of letters no completions are suggested at all.  This mostly happens at random and restarting Akonadi multiple times may change the suggestions for a given input. Different installation I use may or may not return different suggestions from the same address books across all installations, again this mostly happens at random.

Also, for some inputs a completion is suggested based on 'Recent Addresses' or 'Contacts found in your data'.

I am not sure if this is relevant or not: I have multiple address books configured, all of which are DAV resources. All address books are affected and it does not matter if the combination of letters is only found in one address book or if the contacts come from different address books.

KMail versions before 5.7.0 have been affected as well, dating back to the versions of KMail shipped with KDE 4 but it seems to become worse (no hard evidence though). Also, I can reproduce this on three different computers / systems that use different version of KMail / KDE (two still using KDE 4). Removing everything KMail / Akonadi related from these computers and setting up new accounts / DAV address books does not seem to help.

Thanks for considering
  Christian.
Comment 1 Christian Quast 2018-02-20 16:41:02 UTC
By accident I figured why some contacts are proposed for completions while others are not: I first observed this behaviour after a clean install of KDE 5.x (openSUSE 42.x). I did't not keep / copy any settings from my old KDE installation. I then set-up Kontact to connect to my owncloud/nextcloud and mail servers. My contacts were synced to my local computer and I could see them Kontact / KAddressbook. 

I now realised that only those contacts are suggested for completion in KMail that I have modified locally in Kontact / KAddressbook, others are not. The steps to reproduce this should be as follows:

No suggestion:
* remove all akonadi / Kontact related settings, caches,
* configure kontact to sync contacts from an owncloud/nextcloud server (maybe others?),
* set-up an E-Mail account,
* wait for remote contacts to be synced,
* write a new E-Mail to a contact in the address book,
* and wait for suggestions -> no suggestions should be found.

Working suggestion:
* in addition to the above, modify any of the contacts locally, e.g. add a random E-Mail address, 
* click 'OK' to save changes,
* write a new E-Mail to a contact in the address book,
* and wait for suggestions -> a suggestion should be found.

Best
  Christian.
Comment 2 Christian Quast 2018-02-20 16:43:32 UTC
In case of 'Working suggestion', the above should read:

* write a new E-Mail and address it to the changed contact

sorry.
Comment 3 Justin Zobel 2022-11-15 22:58:37 UTC
Thank you for reporting this issue in KDE software. As it has been a while since this issue was reported, can we please ask you to see if you can reproduce the issue with a recent software version?

If you can reproduce the issue, please change the status to "REPORTED" when replying. Thank you!
Comment 4 Bug Janitor Service 2022-11-30 05:14:48 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 5 Bug Janitor Service 2022-12-15 05:14:55 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!