Bug 203902 - Lookup of addresses while creating a mail does not work.
Summary: Lookup of addresses while creating a mail does not work.
Status: VERIFIED FIXED
Alias: None
Product: kaddressbook
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-15 01:17 UTC by Sabine Faure
Modified: 2010-06-18 18:21 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sabine Faure 2009-08-15 01:17:18 UTC
Version:            (using Devel)
Compiler:          gcc 4.3.2 
OS:                Linux
Installed from:    Compiled sources

- Configure Akonadi with an IMAP and Kolab resource.
- Enter a couple of Contacts in KAddressBook.
- Go to Kmail and create a new message.
- Enter a few letters from one of the Contacts you created above in the 'To' line edit.

There should be an autocompletion but at the moment nothing happens even if you type the Contact name entirely (ex: John Smith)

SVN REV 1011519
Comment 1 jmaldrich 2010-03-25 21:58:44 UTC
I had this problem too, and after poking around under the hood (SystemSettings ->Advanced ->KDE Resources I was able to ADD KAddressBook to my address books. However, I agree, if you add an email address to KAddressBook, it should be picked up by KMail automatically.
Comment 2 Tobias Koenig 2010-05-16 10:25:12 UTC
Hej Sabine,

this bug should have been fixed in the meantime, at least I can use auto completion in KMail here.

Ciao,
Tobias
Comment 3 Sabine Faure 2010-05-17 19:34:15 UTC
I retested this today and it does not work for me.
The auto completion does not work at all.

Trunk, Svn Rev 1127799
Comment 4 Tobias Koenig 2010-05-21 16:01:06 UTC
Hej Sabine,

it seems only some contacts had been affected by not showing up on search.
I have committed a patch today to SVN trunk which should fix this bug.
Can you test whether it works for you, please?

Ciao,
Tobias
Comment 5 Sabine Faure 2010-05-23 22:05:27 UTC
I retested this today and it still does not work for me.
The auto completion does not work at all just as before.

Trunk, Svn Rev 1129798
Comment 6 Tobias Koenig 2010-05-23 23:11:05 UTC
Hej Sabine,

you don't get any autocompletion at all? Then something is definitely
wrong with your setup. I get autocompletion for the configured LDAP server
and all configured, akonadi based address book resources.
Do you see any Nepomuk related error messages on the console? And do you
have the nepomuk_contact_feeder agent running?

Ciao,
Tobias
Comment 7 David Faure 2010-05-28 01:47:47 UTC
Answering for Sabine after doing some research:
- LDAP completion for demo.kolab.org was indeed working, it was the only autocompletion that sabine was seeing.
- LDAP completion for mail.kdab.com does not work. I tried setting it up like my computer (SSL+Simple, with a Bind DN), and kldap keeps saying "unknown error code".

I see in the logs:
01:32:07 kio_ldap(23024)/kdepimlibs (kldap) KLDAP::LdapOperation::LdapOperationPrivate::bind: binding to server, bindname:  "cn=Sabine Faure,dc=kdab,dc=com"  password: *****
01:32:07 kio_ldap(23024)/kdepimlibs (kldap) KLDAP::LdapOperation::LdapOperationPrivate::bind: ldap_sasl_bind_s (simple)
01:32:07 kio_ldap(23024) LDAPProtocol::LDAPErr: error code:  -1  msg:  "Can't contact LDAP server" "
Additional info: (unknown error code)" '


(I also see two buglets in kio_ldap: no QCoreApplication available (needed for kwallet), and "finished() called after error()")

====

Independently from this, the completion from the addressbook doesn't work at all. I looked into nepomuk, and it wasn't really starting because it didn't find /usr/bin/virtuoso-t. After installing virtuoso-opensource-6.0-bin that part is working -- error reporting really has to be improved somehow...

So now nepomuk seems to be correctly running, but still, no completion.
kmail(23084)/libakonadi Akonadi::JobPrivate::delayedEmitResult: Akonadi::ContactSearchJob(0x322abd0) emitResult
kmail(23084)/libkdepim KPIM::AddresseeLineEdit::Private::slotAkonadiSearchResult: akonadi found  0 contacts
kmail(23084)/libkdepim KPIM::AddresseeLineEdit::Private::akonadiPerformSearch: searching akonadi with: "d"
kmail(23084)/libkdepim KPIM::AddresseeLineEdit::Private::akonadiHandlePending: Pending items:  0
kmail(23084)/libakonadi Akonadi::JobPrivate::handleResponse: Akonadi::ContactSearchJob(0x317cf10) "OK SEARCH completed
"
kmail(23084)/libakonadi Akonadi::JobPrivate::delayedEmitResult: Akonadi::ContactSearchJob(0x317cf10) emitResult

I confirm that akonadi_nepomuk_contact_feeder is running. But... there's no debug output from it at the time of typing letters in the kmail composer "To" field...
Comment 8 Sabine Faure 2010-05-28 23:54:51 UTC
It is corrected now.

I retested this today and the lookup of addresses works fine now after David fixed my Nepomuk.
Thx for the suggestion Tobias ;o)

Trunk, Svn Rev 1131669
Comment 9 David Faure 2010-05-29 00:04:37 UTC
Maybe the "nepomuk doesn't work" dialog that is shown on startup, could indicate that without nepomuk, there will be no completion of contacts in kmail.
This way users will know what to do when it doesn't work, rather than report a bug :-)

If I remember correctly the current dialog only talks about mail searching, which is quite different.
Comment 10 Jonathan Riddell 2010-06-18 18:21:54 UTC
is there a fix for this for KDE PIM 4.4?  r1131669 doesn't apply to 4.4.