aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/backend/ebook/e-card.c
diff options
context:
space:
mode:
Diffstat (limited to 'addressbook/backend/ebook/e-card.c')
-rw-r--r--addressbook/backend/ebook/e-card.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/addressbook/backend/ebook/e-card.c b/addressbook/backend/ebook/e-card.c
index c98f0dce30..d7f5457326 100644
--- a/addressbook/backend/ebook/e-card.c
+++ b/addressbook/backend/ebook/e-card.c
@@ -1827,12 +1827,12 @@ e_card_email_match_single_string (const gchar *a, const gchar *b)
++xb;
while (match && *xa != '@' && *xb != '@') {
- match = (*xa == *xb);
+ match = (tolower (*xa) == tolower (*xb));
--xa;
--xb;
}
- match = match && ((*xa == *xb) || (*xa == '.') || (*xb == '.'));
+ match = match && ((tolower (*xa) == tolower (*xb)) || (*xa == '.') || (*xb == '.'));
return match;
}
@@ -1866,7 +1866,7 @@ e_card_email_find_number (const ECard *card, const gchar *email)
iter = e_list_get_iterator (card->email);
for (e_iterator_reset (iter); e_iterator_is_valid (iter); e_iterator_next (iter)) {
- if (!strcmp (e_iterator_get (iter), email))
+ if (!g_strcasecmp (e_iterator_get (iter), email))
goto finished;
++count;
}