X-Git-Url: http://gitweb.michael.orlitzky.com/?p=mailshears.git;a=blobdiff_plain;f=lib%2Fmv%2Fplugins%2Fdovecot.rb;h=b1dc598b013b6207d685c296b87ec64aff051d65;hp=0eb688861442aba8e07e8cad640a92ce7ec30abc;hb=1d7d65c9583a879358de36ab1ac26b35a2805ba8;hpb=7f8654ed6582062a295e1be75ae70e99de41b323 diff --git a/lib/mv/plugins/dovecot.rb b/lib/mv/plugins/dovecot.rb index 0eb6888..b1dc598 100644 --- a/lib/mv/plugins/dovecot.rb +++ b/lib/mv/plugins/dovecot.rb @@ -1,9 +1,8 @@ require 'common/filesystem' -require 'common/mailstore' require 'common/dovecot_plugin' require 'mv/mv_plugin' -class DovecotMv < Mailstore +class DovecotMv include DovecotPlugin include MvPlugin @@ -15,9 +14,9 @@ class DovecotMv < Mailstore FileUtils.mv(from_path, to_path) end - def mv_account(from, to) - from_path = self.get_account_path(from) - to_path = self.get_account_path(to) + def mv_user(from, to) + from_path = self.get_user_path(from) + to_path = self.get_user_path(to) FileUtils.mv(from_path, to_path) end