From df92a32fc1c0597df616c0bbe57c7d07772ecf93 Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Wed, 20 Apr 2011 01:41:57 +0100 Subject: [PATCH] Change PotentialMatch.known_email_aliases to be of type Set Helps: bgo#640092 --- NEWS | 1 + folks/potential-match.vala | 11 ++++++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index 50c0fbe..6ac78c2 100644 --- a/NEWS +++ b/NEWS @@ -44,6 +44,7 @@ API changes: * LocalIdDetails.local_ids now has type Set * NoteDetails.notes now has type Set * RoleDetails.roles now has type Set +* PotentialMatch.known_email_aliases now has type Set 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 */ +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 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 known_email_aliases = null; + private static double _DIST_THRESHOLD = 0.70; private const string _SEPARATORS = "._-+"; -- 2.7.4