X-Git-Url: http://gitweb.michael.orlitzky.com/?p=mailshears.git;a=blobdiff_plain;f=lib%2Fprune%2Fplugins%2Fagendav.rb;h=083a3e42731c6aeb59391b2d96a8387885a77cd6;hp=15787734517c2345a19eb24e1e1a24e78bb657c0;hb=7f8654ed6582062a295e1be75ae70e99de41b323;hpb=bd2dabf89ab277fbe315b05e6dfa839afb5ce5ef;ds=sidebyside diff --git a/lib/prune/plugins/agendav.rb b/lib/prune/plugins/agendav.rb index 1578773..083a3e4 100644 --- a/lib/prune/plugins/agendav.rb +++ b/lib/prune/plugins/agendav.rb @@ -1,23 +1,23 @@ require 'pg' -require 'common/agendav_plugin' require 'prune/prune_plugin' require 'rm/plugins/agendav' class AgendavPrune < AgendavRm - include AgendavPlugin include PrunePlugin def get_leftover_domains(db_domains) - # AgenDAV doesn't have a concept of domains. + # AgenDAV doesn't have a concept of domains. We could parse the + # usernames to see what domains are present, but the point is + # moot: all leftover accounts will be pruned anyway. return [] end def get_leftover_accounts(db_accounts) # Get a list of all users who have logged in to AgenDAV. - ad_accounts = self.get_agendav_usernames() + ad_accounts = self.list_users() return ad_accounts - db_accounts end