]> gitweb.michael.orlitzky.com - mailshears.git/blobdiff - lib/mv/plugins/dovecot.rb
Rename PostfixadminDb, RoundcubeDb without the Db suffix.
[mailshears.git] / lib / mv / plugins / dovecot.rb
diff --git a/lib/mv/plugins/dovecot.rb b/lib/mv/plugins/dovecot.rb
new file mode 100644 (file)
index 0000000..0eb6888
--- /dev/null
@@ -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