X-Git-Url: http://gitweb.michael.orlitzky.com/?p=mailshears.git;a=blobdiff_plain;f=lib%2Fprune%2Fplugins%2Fdovecot_mailstore.rb;fp=lib%2Fprune%2Fplugins%2Fdovecot_mailstore.rb;h=0000000000000000000000000000000000000000;hp=eddd822f0bfff4c04fbf2d9bcf2da51aba17d23f;hb=7f8654ed6582062a295e1be75ae70e99de41b323;hpb=bd2dabf89ab277fbe315b05e6dfa839afb5ce5ef diff --git a/lib/prune/plugins/dovecot_mailstore.rb b/lib/prune/plugins/dovecot_mailstore.rb deleted file mode 100644 index eddd822..0000000 --- a/lib/prune/plugins/dovecot_mailstore.rb +++ /dev/null @@ -1,28 +0,0 @@ -require 'common/dovecot_mailstore_plugin' -require 'prune/prune_plugin' -require 'rm/plugins/dovecot_mailstore' - -class DovecotMailstorePrune < DovecotMailstoreRm - - include DovecotMailstorePlugin - include PrunePlugin - - - def get_leftover_domains(db_domains) - # Get the list of domains according to the filesystem. - fs_domains = self.list_domains() - - # Return the list of domains on the filesystem that aren't in the DB. - return (fs_domains - db_domains) - end - - def get_leftover_accounts(db_accounts) - # Get the list of accounts according to the filesystem. - fs_domains = self.list_domains() - fs_accounts = self.list_domains_users(fs_domains) - - # And return the accounts on the filesystem that aren't in the DB. - return (fs_accounts - db_accounts) - end - -end