[kmail2] [Bug 328777] New: Photo search for contact email should be case-insensitive
Sven
Fd3querm at yahoo.de
Fri Dec 13 22:51:31 GMT 2013
https://bugs.kde.org/show_bug.cgi?id=328777
Bug ID: 328777
Summary: Photo search for contact email should be
case-insensitive
Classification: Unclassified
Product: kmail2
Version: 4.11.3
Platform: Archlinux Packages
OS: Linux
Status: UNCONFIRMED
Severity: normal
Priority: NOR
Component: UI
Assignee: kdepim-bugs at kde.org
Reporter: Fd3querm at yahoo.de
Some themes for the header of the messageviewer show a photo of the sender
inside the message viewer if the contact is known to akonadi. This does not
work, if the address in the From: field of the email has other spelling in
terms of upper and lower case characters than the email in akonadi's contacts.
E.g. akonadi knows john.doe at example.com and the From: field contains
John.Doe at example.com ==> no photo is shown.
This is easy to fix, just modify line 33 in
kdepim-4.11.4/messageviewer/header/contactdisplaymessagememento.cpp:
- searchJob->setQuery( Akonadi::ContactSearchJob::Email, emailAddress )
+ searchJob->setQuery( Akonadi::ContactSearchJob::Email, emailAddress,
Akonadi::ContactSearchJob::StartsWithMatch );
However, the default behavior of this function, i.e. using Match::ExactMatch to
find contacts based on emails is strange at all.
Reproducible: Always
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the Kdepim-bugs
mailing list