[folks] Change PotentialMatch.known_email_aliases to be of type Set<string>



commit df92a32fc1c0597df616c0bbe57c7d07772ecf93
Author: Philip Withnall <philip withnall collabora co uk>
Date:   Wed Apr 20 01:41:57 2011 +0100

    Change PotentialMatch.known_email_aliases to be of type Set<string>
    
    Helps: bgo#640092

 NEWS                       |    1 +
 folks/potential-match.vala |   11 ++++++++++-
 2 files changed, 11 insertions(+), 1 deletions(-)
---
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<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 = "._-+";
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]