]> gitweb.michael.orlitzky.com - mailshears.git/blob - lib/prune/prune_plugin.rb
Remove "-K" from the shebang, and remove the outdated intro comment.
[mailshears.git] / lib / prune / prune_plugin.rb
1 require 'rm/rm_plugin'
2
3 module PrunePlugin
4 #
5 # Plugins for the removal of leftover non-PostfixAdmin users,
6 # i.e. after an user has been removed from the PostfixAdmin
7 # database.
8 #
9 include RmPlugin
10 extend Plugin::Run
11
12 def self.runner()
13 return PruneRunner
14 end
15
16 def self.dummy_runner
17 return PruneDummyRunner
18 end
19
20 def get_leftover_domains(db_domains)
21 # Given a list of domains, determine which domains belonging to
22 # this plugin are not contained in the given list.
23 raise NotImplementedError
24 end
25
26 def get_leftover_users(db_users)
27 # Given a list of users, determine which users belonging to
28 # this plugin are not contained in the given list.
29 raise NotImplementedError
30 end
31 end