2ccb9a388572acedcb3dbb67bc36120f06381347
[mailshears.git] / lib / mv / mv_plugin.rb
1 module MvPlugin
2 #
3 # Plugins for moving (renaming) accounts.
4 #
5
6 def MvPlugin.included(c)
7 # Callback, called whenever another class or module includes this
8 # one. The parameter given is the name of the class or module
9 # that included us.
10 @includers ||= []
11 @includers << c
12 end
13
14 def MvPlugin.includers
15 return @includers
16 end
17
18 def mv_domain(from, to)
19 # Rename the given domain.
20 raise NotImplementedError
21 end
22
23 def mv_account(from, to)
24 # Rename the given account.
25 raise NotImplementedError
26 end
27
28 end