]> gitweb.michael.orlitzky.com - mailshears.git/blob - lib/prune/plugins/roundcube_db.rb
Move domain removal into the plugins.
[mailshears.git] / lib / prune / plugins / roundcube_db.rb
1 require 'pg'
2
3 require 'common/roundcube_db_plugin'
4 require 'prune/prune_plugin'
5 require 'rm/plugins/roundcube_db'
6
7 class RoundcubeDbPrune < RoundcubeDbRm
8
9 include RoundcubeDbPlugin
10 include PrunePlugin
11
12
13 def get_leftover_domains(db_domains)
14 # Roundcube doesn't have a concept of domains.
15 return []
16 end
17
18
19 def get_leftover_accounts(db_accounts)
20 # Get a list of all users who have logged in to Roundcube.
21 rc_accounts = self.get_roundcube_usernames()
22 return rc_accounts - db_accounts
23 end
24
25 end