X-Git-Url: http://gitweb.michael.orlitzky.com/?p=mailshears.git;a=blobdiff_plain;f=lib%2Fprune%2Fplugins%2Fdovecot.rb;h=bf96420d209753da032d77bd4cbcb7e71d3d5f3e;hp=88e5c1cb875351293758c945608f8a1a5f363590;hb=72696d3f6e95ef773af9727e9c3459b9038b0fc2;hpb=7f8654ed6582062a295e1be75ae70e99de41b323 diff --git a/lib/prune/plugins/dovecot.rb b/lib/prune/plugins/dovecot.rb index 88e5c1c..bf96420 100644 --- a/lib/prune/plugins/dovecot.rb +++ b/lib/prune/plugins/dovecot.rb @@ -14,13 +14,13 @@ class DovecotPrune < DovecotRm return (fs_domains - db_domains) end - def get_leftover_accounts(db_accounts) - # Get the list of accounts according to the filesystem. + def get_leftover_users(db_users) + # Get the list of users according to the filesystem. fs_domains = self.list_domains() - fs_accounts = self.list_domains_users(fs_domains) + fs_users = self.list_domains_users(fs_domains) - # And return the accounts on the filesystem that aren't in the DB. - return (fs_accounts - db_accounts) + # And return the users on the filesystem that aren't in the DB. + return (fs_users - db_users) end end