X-Git-Url: http://gitweb.michael.orlitzky.com/?p=mailshears.git;a=blobdiff_plain;f=lib%2Fprune%2Fplugins%2Fpostfixadmin.rb;h=7059e07b16d8ecd7b5e634fd869513ada204c213;hp=d085489f5b9ffb274877157d05e55b0768799572;hb=df4e02ebf6a4e28a58abcb298a4442a245ad0b15;hpb=7f8654ed6582062a295e1be75ae70e99de41b323 diff --git a/lib/prune/plugins/postfixadmin.rb b/lib/prune/plugins/postfixadmin.rb index d085489..7059e07 100644 --- a/lib/prune/plugins/postfixadmin.rb +++ b/lib/prune/plugins/postfixadmin.rb @@ -1,24 +1,13 @@ -require 'pg' - require 'prune/prune_plugin' require 'rm/plugins/postfixadmin' -class PostfixadminPrune < PostfixadminRm - - include PrunePlugin - - #def get_leftover_domains(db_domains) - # AgenDAV doesn't have a concept of domains. We could parse the - # usernames to see what domains are present, but the point is - # moot: all leftover accounts will be pruned anyway. - #return [] -#end - - - #def get_leftover_accounts(db_accounts) - # Get a list of all users who have logged in to AgenDAV. - #ad_accounts = self.list_users() - # return ad_accounts - db_accounts - #end - -end +# This class does absolutely nothing except allow us to blindly +# instantiate classes based on the mode name and configured plugins. +# +# We don't need the ability to remove "left over" Postfixadmin users +# or domains, since "left over" is with respect to what's in +# Postfixadmin itself. The other pruning plugins check themselves +# against Postfixadmin -- it doesn't make sense to check Postfixadmin +# against itself. +# +class PostfixadminPrune < PostfixadminRm; end