]> gitweb.michael.orlitzky.com - mailshears.git/blobdiff - lib/prune/plugins/postfixadmin.rb
Get prune working, at least in a simple case.
[mailshears.git] / lib / prune / plugins / postfixadmin.rb
index d085489f5b9ffb274877157d05e55b0768799572..62e564710166468e142ddabc5fe9f6d3c404bf2e 100644 (file)
@@ -1,24 +1,10 @@
-require 'pg'
-
 require 'prune/prune_plugin'
 require 'rm/plugins/postfixadmin'
 
 class PostfixadminPrune < PostfixadminRm
 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
 end