Bug 78073 - KMail message editor address book filter seems case-sensitive...
Summary: KMail message editor address book filter seems case-sensitive...
Status: RESOLVED FIXED
Alias: None
Product: kmail
Classification: Applications
Component: general (show other bugs)
Version: 1.6
Platform: unspecified Linux
: NOR wishlist
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-20 16:39 UTC by Martin Rieder
Modified: 2007-09-14 12:17 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 Martin Rieder 2004-03-20 16:39:34 UTC
Version:           1.6 (using KDE 3.2.0, Gentoo)
Compiler:          gcc version 3.3.2 20031218 (Gentoo Linux 3.3.2-r5, propolice-3.3-7)
OS:          Linux (i686) release 2.4.22-gentoo-r5

When composing a new message in KMail, the filter in the address book window (after clicking "..." next to "To:") performs a case-sensitive search (at least for the addresses I tried).

Intuitively, it should be case-in-sensitive, so the search is easier and gives alternative results. (Maybe a filter for similar-sounding names could also be done?)
Comment 1 Allen Winter 2004-04-02 05:38:49 UTC
CVS commit by winterz: 

Patch from Severin Greimel <greimel-kde fs-pw uni-muenchen de>
Fixes Bug #78073, KMail message editor address book filter should
be case-insensitive.  Thanks Severin.
CCMAIL: 78073-done@bugs.kde.org
CCMAIL: greimel-kde@fs-pw.uni-muenchen.de


  M +1 -1      addressesdialog.cpp   1.25


--- kdepim/libkdepim/addressesdialog.cpp  #1.24:1.25
@@ -148,5 +148,5 @@ AddresseeViewItem::email() const
 bool AddresseeViewItem::matches(const QString& txt) const
 {
-    return d->address.realName().contains(txt) || d->address.preferredEmail().contains(txt);
+    return d->address.realName().contains(txt, false) || d->address.preferredEmail().contains(txt, false);
 }