diff options
author | Sushma Rai <rsushma@src.gnome.org> | 2005-08-22 13:38:52 +0800 |
---|---|---|
committer | Sushma Rai <rsushma@src.gnome.org> | 2005-08-22 13:38:52 +0800 |
commit | 96604b4c6362d7ef1c5a74ad5f6a27c7ae5b604e (patch) | |
tree | 4a5c3b132a728887adb87812b41a433a2b10a052 /addressbook/gui/merging | |
parent | 4883016931244849cc0c725af8532932f47899e3 (diff) | |
download | gsoc2013-evolution-96604b4c6362d7ef1c5a74ad5f6a27c7ae5b604e.tar.gz gsoc2013-evolution-96604b4c6362d7ef1c5a74ad5f6a27c7ae5b604e.tar.zst gsoc2013-evolution-96604b4c6362d7ef1c5a74ad5f6a27c7ae5b604e.zip |
Fixed the problem of comparison and never returning true, in
match_email_hostname().
svn path=/trunk/; revision=30186
Diffstat (limited to 'addressbook/gui/merging')
-rw-r--r-- | addressbook/gui/merging/eab-contact-compare.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/addressbook/gui/merging/eab-contact-compare.c b/addressbook/gui/merging/eab-contact-compare.c index 7fcaef7ea0..0c28684f23 100644 --- a/addressbook/gui/merging/eab-contact-compare.c +++ b/addressbook/gui/merging/eab-contact-compare.c @@ -459,9 +459,10 @@ match_email_hostname (const gchar *addr1, const gchar *addr2) --addr1; --addr2; } - - /* This will match bob@foo.ximian.com and bob@ximian.com */ - return *addr1 == '.' || *addr2 == '.'; + if((*addr1 == '@' && *addr2 != '@' ) || (*addr2 == '@' && *addr1 != '@')) + return FALSE; + + return TRUE; } static EABContactMatchType |