Bug 220608 - Kmail does not suggest/complete adresses from (external) adress books for new mails
Summary: Kmail does not suggest/complete adresses from (external) adress books for new...
Status: RESOLVED UNMAINTAINED
Alias: None
Product: kmail
Classification: Applications
Component: general (show other bugs)
Version: 1.13.0
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
: 246577 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-12-29 23:48 UTC by Ralph Moenchmeyer
Modified: 2015-04-13 06:46 UTC (History)
7 users (show)

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 Ralph Moenchmeyer 2009-12-29 23:48:44 UTC
Version:           1.13.0 (using Devel)
OS:                Linux
Installed from:    Compiled sources

I tried KDE 4.3.85 (4.4 beta2) from the Opensuse repositories on a Opensuse 11.2 system. 

Akonadi and Nepomuk are running. Nepomuk's backend is virtuoso. 

My main addressbook is a conventional Open-Xchange (OX) address book, which works without any problems in KDE 4.3.4. 

I can set up the OX addressbook in Kontact 4.3.85, too. It is installed in Kontact and is visible as a resource also in Akonadi. 

I can even search for addresses in the OX adress book - for any letter sequence in the search field suggestions for possible completion of the address are automatically and correctly displayed. Furthermore it is possible to save new contacts on the OX server.   

However, in Kmail the situations is different. Here as a normal user one expects address completion via suggestions. 
But, when you start writing a new mail and on e starts typing in one of the address fields (e.g. the TO field) no suggestions for address completion appear. No records from the OX address book nor suitable records from the "Default Address Book" are displayed. 

I regard this as a major bug because it makes Kmail very uncomfortable to use. 

By the way : The same type of bug appeared in the initial releases of KDE 4.1. Is address completion always one of the last steps during Kontact development ? Or is the bug related to the introduction of Akonadi ?
Comment 1 Marcel 2010-01-25 01:56:50 UTC
I can confirm this with all types of addressbooks I tested, the autocompletion just shows the last used addresses. I can't even get a contact by using the "choose"-button right to the address-field.

Have you solved this?

I'm using openSUSE 11.2 with KDE 4.4 RC2, but I have also seen this missing behaviour on a Kubuntu-System. But at some Point while 4.4 beta this was working, so I don't think this is becauso of the akonadi-porting.
Comment 2 Ralph Moenchmeyer 2010-03-12 10:41:51 UTC
In my opinion this bug is solved now. 

Presently, I have KDE 4.4.1 installed on my Opensuse 11.2 (x86_64) system. It again took me a while to remember and understand the very strange logic that the "adressbook" for contacts in Kontact (version> 4.4) is now Akonadi based, but that this "default adressbook" is not used at all by all the other Kontact applications.  

The stupid thing is that Kmail's adressbook in several context menus is also named "default adressbook" - but actually one needs another additional source than the Akonadi based "default adressbook" to get Kmail working with adresses. 

By the way: Whoever had this splendid idea should get a prize for the best user confusing act of the year !

But OK, after having "understood" the adressbook chaos again, I additionally configured a standard adressbook based on an Open-Xchange server service. And this adressbook now appears in Kmail and is working as expected. Including the automatic adress completion ....

I did not really test other adressbook ressources. Can any one else confirm that the problem is solved ?
Comment 3 Björn Ruberg 2010-08-05 23:47:06 UTC
*** Bug 246577 has been marked as a duplicate of this bug. ***
Comment 4 Ralph Moenchmeyer 2010-08-07 14:21:39 UTC
I see that another bug for Opensuse 11.3, KDE 4.4, Kmail and the adressbook is marked as a duplicate of this bug. 

I ran into a similar situation with Opensuse 11.2 some month ago, but : 

As soon as one configures the address resources correctly Kmail will work as expected - including the address completion. So regarding at least Opensuse 11.2 and KDE 4.4.4 there is no real bug. 

Conventional adressbooks do work - e.g. local adressbooks, external address books from an Open-Xchange server - but they have to be configured correctly. 

As the KDE version I use for Opensuse 11.2 is the same as the stable one used in Opensuse 11.3 I doubt that there are real problems with Opensuse 11.3. 
I have installed it on a laptop - and I do not see any problem with a local conventional address book and address completion. 

I think that it is more the general confusion around the special Akonadi based adressbook and conventional adressbooks that makes people think that Kmail is not working. 

So, if there are problems with Opensuse it is very likely that they are more a matter of setting up conventional adressbooks correctly. 

I will soon switch to an Opensuse 11.3 installation on my standard productive desktop. If I do not see a problem there I think this "bug" can be closed. I will post a comment then. 

However, a clear description how to set up adressbooks with Kmail should be written and placed in some KDE help section or tutorial.
Comment 5 Ralph Moenchmeyer 2010-08-07 15:02:50 UTC
I had a look at my logs and notes for what I did with Opensuse 11.2 and KDE 4.4 to get my adressbooks working. 

It seems to me that I needed to set up the addressbook resources via the KDE "systemsettings". Following my own notes it was not enough to just use Kontact to set up a conventional addressbook resource. 

Maybe this hint may help others. 

It might be that some link is missing in in KDE 4.4 between the adressbook setup in Kontact and the resource administration in KDE's "systemsettings".
Comment 6 Ralph Moenchmeyer 2010-08-28 14:31:42 UTC
Regarding this bug (220608 ) and Bug 246577: 

Earlier today, I installed Opensuse 11.3 with KDE 4.5 on my working desktop. As expected (see commment #4) I could get a "traditional" address book working together with Kmail. In my case it is an Open-Xchange address book, but everything should work with other "traditional" address books, too. What I did: 

1) Step 1: Setup a "traditional" address book in Kontact's adress book area. 

2) Step 2 (!): Open KDE's systemsettings. Go to "Personal Information" (KDE ressources) and add an address book entry there with exactly the same information as in step 1.
 
(Why step 1 does not automatically lead to an entry here is a big mystery to me. In case of calendars an entry appears without further manual actions  ...)  

3) Step 3: Log out, restart KDE, restart Kmail. 

4) Step 4: Verify that the address book is now an Akonadi resource, too.      

5) Step 5: Open Kontact - open Kmail: Compose a new mail and enjoy using the automatic address completion.

Hope that helps for others.
Comment 7 Ralph Moenchmeyer 2010-08-28 15:05:21 UTC
I in addition to traditional address books tried to get the (non-traditional) Akonadi address book resource "Personal Contacts" to work with Kmail's address auto completion in Opensuse 11.3/KDE 4.5. With success, too. 

The trick again is to modifiy KDE's systemsettings. 

Go to "Personal Information" (KDE ressources) and now add an address book entry corresponding to an Akonadi resource (Akonadi address book). Then the KDE system offers you a list of already present Akonadi resources. Choose "Personal Contacts".
 
Restart KDE, restart Kmail. Then even the (pure) Akonadi contacts appear within Kmail's address completion. 

Summary: 

Both Akonadi address books and traditional address books can be used with Kmail, now. Provided these address book resources are (manually) configured via systemsettings. 

So, there is no real bug anymore. However, some dialogs should be added to Kontact such that the user is warned to activate newly added address books via KDE's systemsettings - or these resource configuration steps should be carried out automatically. 

It is the lack of integration between Kontact and KDE's systemsettings for resources that presently is the problem for the user.
Comment 8 Diggory Hardy 2012-10-18 14:19:27 UTC
Moving on to KDE 4.9 and 2012, the above doesn't appear to work. I have "Personal Contacts" in the Akonadi resources, but still only get completion from recent addresses.
Comment 9 Volker Kuhlmann 2013-08-14 00:04:05 UTC
openSUSE 12.3, KDE 4.10.5, kmail2 4.10.5
Address autocompletion IS NOT WORKING. Only autocompletion from recent addresses works.

In my system settings there is a "Personal Contacts" configured; this is there automatically. It's located at ~/.local/share/contacts/
kmail warned that nepomuk semantic desktop must be running.
I started nepomuk, turned on everything in it (but restricted file indexing to ~/.kde4, ~/.local, ~/.config - the rest is crazy), and make sure it is running.
No autocompletion from address book. The "Select recipient" button works, from the same address book.
Comment 10 Volker Kuhlmann 2013-08-14 00:31:13 UTC
Will Stephenson suggests
https://bugs.kde.org/show_bug.cgi?id=237511#c25
  if you open "akonadiconsole" is the status of "Nepomuk contacts feeder" in the Agents tab "Indexing completed"?  
My "Akonadi Nepomuk Feeder" in the agents tab is running and indexing is complete.
Comment 11 Diggory Hardy 2013-08-14 07:43:11 UTC
Works for me now, but note that there is a delay (i.e. type, get completion for recent addresses immediately, wait a couple of seconds, then get completions from contacts).
Comment 12 Volker Kuhlmann 2013-08-14 20:42:13 UTC
The new warning in kmail that semantic desktop must be running is extremely misleading - but only goes away after turning on nepomuk.
To get autocompletion working, one has to delete the tabs and feeder agents (the latter will be recreated) and turn nepomuk off completely.

There are other bugs too - the address book resource synchronisation most of the time does nothing. It may detect new or deleted vcard files, but fails to do any action on changed ones. These are vcard files in ~/.local/share/contacts/ created by kaddressbookmigrator.
No, restarting akonadi or restarting KDE does NOT help.
All this feeder/resource/whatnot stuff is not in good shape.
Comment 13 Laurent Montel 2015-04-12 10:14:17 UTC
Thank you for taking the time to file a bug report.

KMail2 was released in 2011, and the entire code base went through significant changes. We are currently in the process of porting to Qt5 and KF5. It is unlikely that these bugs are still valid in KMail2.

We welcome you to try out KMail 2 with the KDE 4.14 release and give your feedback.
Comment 14 Ralph Moenchmeyer 2015-04-13 06:46:38 UTC
Thank you for commenting after a long time and closing the bug. 

Problems with OX were my reason for opening the bug in 2009. Actually, I do not feel to be the right person to define a status of this bug any more - although I opened it. Not only, because we all use Kmail2 for years now, but also because I personally have stopped to use OX 5 and 6 as this company does not care for small customers any more. 

What I can say is that Kmail2/Kontact (after version 4.11) worked relatively well together with addresses and other resources maintained in OX 6. 
 
Most of some still existing difficulties (in 2011 to 2013) with respect to the addressbook features - especially after upgrades - appeared to be consequences of basic Akonadi/Nepomuk problems. For me and my colleagues as users of KDE for over a decade now the combination of Akonadi and Nepomuk (and our combination with external groupware) had always been a nightmare - and everybody in our small company was afraid of major KDE upgrades. But that is fortunately history now.   

What I also can say that Kmail2/Kontact (version > 4.10) worked and work well with some older versions of Kolab 3 (as of August 2013). As we did not change our internal Kolab version since then I cannot say anything about the present status of integration.    

Good luck with KDE 5 !