diff options
author | Philip Withnall <philip.withnall@collabora.co.uk> | 2011-04-20 01:41:57 +0100 |
---|---|---|
committer | Philip Withnall <philip.withnall@collabora.co.uk> | 2011-04-23 22:00:46 +0100 |
commit | df92a32fc1c0597df616c0bbe57c7d07772ecf93 (patch) | |
tree | f26996894e2edc505c260c87c6b6a714b7400608 | |
parent | a1aa6294a48a6cec8b92edd7f7cc73f6047c39cc (diff) |
Change PotentialMatch.known_email_aliases to be of type Set<string>
Helps: bgo#640092
-rw-r--r-- | NEWS | 1 | ||||
-rw-r--r-- | folks/potential-match.vala | 11 |
2 files changed, 11 insertions, 1 deletions
@@ -44,6 +44,7 @@ API changes: * LocalIdDetails.local_ids now has type Set<string> * NoteDetails.notes now has type Set<Note> * RoleDetails.roles now has type Set<Role> +* PotentialMatch.known_email_aliases now has type Set<string> Overview of changes from libfolks 0.4.0 to libfolks 0.5.0 ========================================================= diff --git a/folks/potential-match.vala b/folks/potential-match.vala index 2d91617..86a7cbd 100644 --- a/folks/potential-match.vala +++ b/folks/potential-match.vala @@ -18,6 +18,7 @@ * Raul Gutierrez Segales <raul.gutierrez.segales@collabora.co.uk> */ +using Gee; /** * Likely-ness of a potential match. @@ -46,7 +47,15 @@ public class Folks.PotentialMatch : Object MatchResult _result; private Folks.Individual _individual_a; private Folks.Individual _individual_b; - public static Gee.HashSet<string> known_email_aliases = null; + + /** + * A set of e-mail addresses known to be aliases of each other, such as + * various forms of administrator address. + * + * @since UNRELEASED + */ + public static Set<string> known_email_aliases = null; + private static double _DIST_THRESHOLD = 0.70; private const string _SEPARATORS = "._-+"; |