X-Git-Url: http://gitweb.michael.orlitzky.com/?p=mailshears.git;a=blobdiff_plain;f=lib%2Fprune%2Fplugins%2Fpostfixadmin.rb;h=62e564710166468e142ddabc5fe9f6d3c404bf2e;hp=d085489f5b9ffb274877157d05e55b0768799572;hb=4e7ef12d3d47aa7ec68419de46c51269c40eb158;hpb=ef1b9dcb21d2e084408de19d844d438b99a00dc2 diff --git a/lib/prune/plugins/postfixadmin.rb b/lib/prune/plugins/postfixadmin.rb index d085489..62e5647 100644 --- a/lib/prune/plugins/postfixadmin.rb +++ b/lib/prune/plugins/postfixadmin.rb @@ -1,24 +1,10 @@ -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 - + # We don't need the ability to remove "left over" accounts or + # domains, since "left over" is with respect to what's in + # PostfixAdmin. In other words, the other plugins check themselves + # against PostfixAdmin, it doesn't make sense to check PostfixAdmin + # against itself. end