X-Git-Url: http://gitweb.michael.orlitzky.com/?p=mailshears.git;a=blobdiff_plain;f=lib%2Fprune%2Fplugins%2Fagendav.rb;h=43b5c99e883cf4287438297308b43769345806aa;hp=083a3e42731c6aeb59391b2d96a8387885a77cd6;hb=72696d3f6e95ef773af9727e9c3459b9038b0fc2;hpb=8064b7be68006d07889e2d24eb0bddc6063d3275 diff --git a/lib/prune/plugins/agendav.rb b/lib/prune/plugins/agendav.rb index 083a3e4..43b5c99 100644 --- a/lib/prune/plugins/agendav.rb +++ b/lib/prune/plugins/agendav.rb @@ -10,15 +10,15 @@ class AgendavPrune < AgendavRm def get_leftover_domains(db_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. + # moot: all leftover users will be pruned anyway. return [] end - def get_leftover_accounts(db_accounts) + def get_leftover_users(db_users) # Get a list of all users who have logged in to AgenDAV. - ad_accounts = self.list_users() - return ad_accounts - db_accounts + ad_users = self.list_users() + return ad_users - db_users end end