]> gitweb.michael.orlitzky.com - mailshears.git/blob - lib/mv/mv_plugin.rb
Add a bunch more crap and rewrite a bunch more crap. Now the 'rm' mode at least runs.
[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