]>
gitweb.michael.orlitzky.com - mailshears.git/blob - lib/prune/prune_plugin.rb
5 # Plugins for the removal of leftover non-PostfixAdmin users,
6 # i.e. after an user has been removed from the PostfixAdmin
16 return PruneDummyRunner
19 def get_leftover_domains(db_domains
)
20 # Given a list of domains, determine which domains belonging to
21 # this plugin are not contained in the given list.
23 # WARNING! Array difference doesn't work for some reason.
24 return list_domains().select
{ |d
| !db_domains
.include?(d
) }
27 def get_leftover_users(db_users
)
28 # Given a list of users, determine which users belonging to
29 # this plugin are not contained in the given list.
31 # WARNING! Array difference doesn't work for some reason.
32 return list_users().select
{ |u
| !db_users
.include?(u
) }