]> gitweb.michael.orlitzky.com - mailshears.git/blobdiff - lib/rm/plugins/davical.rb
Way too many changes to mention. The 'rm' mode works now.
[mailshears.git] / lib / rm / plugins / davical.rb
index 86273cba6e5d2a31f0fb617b24a88f9088d523cc..ce5828a627b3cf72a29069815feab17660a07267 100644 (file)
@@ -45,4 +45,15 @@ class DavicalRm
 
   end
 
+
+
+  def get_domain_usernames(domain)
+    usernames = get_davical_usernames();
+    matches = usernames.select do |username|
+      username =~ /@#{domain}$/
+    end
+
+    return matches
+  end
+
 end