X-Git-Url: http://gitweb.michael.orlitzky.com/?a=blobdiff_plain;ds=sidebyside;f=lib%2Frm%2Fplugins%2Froundcube_db.rb;h=5cda273643029ef808c9b184621017779f92806e;hb=bd2dabf89ab277fbe315b05e6dfa839afb5ce5ef;hp=252ce32688cbb82faa81f42b5522ac8abf73cc7b;hpb=51f027b01e242737956c3ab5aecdd322d6ceeeed;p=mailshears.git diff --git a/lib/rm/plugins/roundcube_db.rb b/lib/rm/plugins/roundcube_db.rb index 252ce32..5cda273 100644 --- a/lib/rm/plugins/roundcube_db.rb +++ b/lib/rm/plugins/roundcube_db.rb @@ -8,13 +8,11 @@ class RoundcubeDbRm include RoundcubeDbPlugin include RmPlugin - def delete_domain(domain) - # Roundcube doesn't have a concept of domains. - end - def delete_account(account) # Delete the given username and any records in other tables # belonging to it. + raise NonexistentAccountError.new(account) if not user_exists(account) + user_id = self.get_user_id(account) # The Roundcube developers were nice enough to include @@ -50,15 +48,4 @@ class RoundcubeDbRm end - - - def get_domain_usernames(domain) - usernames = get_roundcube_usernames(); - matches = usernames.select do |username| - username =~ /@#{domain}$/ - end - - return matches - end - end