]> gitweb.michael.orlitzky.com - mailshears.git/blob - lib/mv/plugins/dovecot.rb
1b0ef79426ef40533d34c6932943f2ab5cb8824d
[mailshears.git] / lib / mv / plugins / dovecot.rb
1 require 'common/filesystem'
2 require 'common/mailstore'
3 require 'common/dovecot_plugin'
4 require 'mv/mv_plugin'
5
6 class DovecotMv < Mailstore
7
8 include DovecotPlugin
9 include MvPlugin
10
11
12 def mv_domain(from, to)
13 from_path = self.get_domain_path(from)
14 to_path = self.get_domain_path(to)
15 FileUtils.mv(from_path, to_path)
16 end
17
18 def mv_user(from, to)
19 from_path = self.get_user_path(from)
20 to_path = self.get_user_path(to)
21 FileUtils.mv(from_path, to_path)
22 end
23
24 end