X-Git-Url: http://gitweb.michael.orlitzky.com/?p=mailshears.git;a=blobdiff_plain;f=lib%2Fmv%2Fplugins%2Fdovecot.rb;fp=lib%2Fmv%2Fplugins%2Fdovecot.rb;h=0eb688861442aba8e07e8cad640a92ce7ec30abc;hp=0000000000000000000000000000000000000000;hb=7f8654ed6582062a295e1be75ae70e99de41b323;hpb=bd2dabf89ab277fbe315b05e6dfa839afb5ce5ef diff --git a/lib/mv/plugins/dovecot.rb b/lib/mv/plugins/dovecot.rb new file mode 100644 index 0000000..0eb6888 --- /dev/null +++ b/lib/mv/plugins/dovecot.rb @@ -0,0 +1,24 @@ +require 'common/filesystem' +require 'common/mailstore' +require 'common/dovecot_plugin' +require 'mv/mv_plugin' + +class DovecotMv < Mailstore + + include DovecotPlugin + include MvPlugin + + + def mv_domain(from, to) + from_path = self.get_domain_path(from) + to_path = self.get_domain_path(to) + 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) + FileUtils.mv(from_path, to_path) + end + +end