X-Git-Url: http://gitweb.michael.orlitzky.com/?p=mailshears.git;a=blobdiff_plain;f=lib%2Fprune%2Fplugins%2Froundcube_db.rb;fp=lib%2Fprune%2Fplugins%2Froundcube_db.rb;h=6515a7b644533bb8b3aca03e3740f8116f163e13;hp=0000000000000000000000000000000000000000;hb=e3826d8926e11763837a591986d453e9ef5d9dec;hpb=a6ae98f0423603445b621a8eaa17443c8d590b45 diff --git a/lib/prune/plugins/roundcube_db.rb b/lib/prune/plugins/roundcube_db.rb new file mode 100644 index 0000000..6515a7b --- /dev/null +++ b/lib/prune/plugins/roundcube_db.rb @@ -0,0 +1,25 @@ +require 'pg' + +require 'common/roundcube_db_plugin' +require 'prune/prune_plugin' +require 'rm/plugins/roundcube_db' + +class RoundcubeDbPrune < RoundcubeDbRm + + include RoundcubeDbPlugin + include PrunePlugin + + + def get_leftover_domains(db_domains) + # Roundcube doesn't have a concept of domains. + return [] + end + + + def get_leftover_accounts(db_accounts) + # Get a list of all users who have logged in to Roundcube. + rc_accounts = self.get_roundcube_usernames() + return rc_accounts - db_accounts + end + +end