]> gitweb.michael.orlitzky.com - mailshears.git/log
mailshears.git
10 years agoMean business when testing.
Michael Orlitzky [Sat, 4 Jan 2014 19:57:23 +0000 (14:57 -0500)]
Mean business when testing.

10 years agoExplicitly require 'common/errors' in RmRunner.
Michael Orlitzky [Sat, 4 Jan 2014 19:57:01 +0000 (14:57 -0500)]
Explicitly require 'common/errors' in RmRunner.

10 years agoFactor out plugin running into the Plugin module (along with the includers() handling).
Michael Orlitzky [Sat, 4 Jan 2014 19:41:08 +0000 (14:41 -0500)]
Factor out plugin running into the Plugin module (along with the includers() handling).

10 years agoRename plugin_class to plugin_module.
Michael Orlitzky [Sat, 4 Jan 2014 19:00:18 +0000 (14:00 -0500)]
Rename plugin_class to plugin_module.

10 years agoMove the Runner selection into the plugin.
Michael Orlitzky [Sat, 4 Jan 2014 18:38:29 +0000 (13:38 -0500)]
Move the Runner selection into the plugin.

10 years agoReplace 'account' with 'user' everywhere.
Michael Orlitzky [Sat, 4 Jan 2014 18:07:57 +0000 (13:07 -0500)]
Replace 'account' with 'user' everywhere.

10 years agoAdd a TODO item.
Michael Orlitzky [Wed, 4 Dec 2013 03:24:55 +0000 (22:24 -0500)]
Add a TODO item.

10 years agoUpdate PruneDummyRunner to pass a Configuration to PostfixadminPrune.
Michael Orlitzky [Wed, 6 Nov 2013 14:10:16 +0000 (09:10 -0500)]
Update PruneDummyRunner to pass a Configuration to PostfixadminPrune.

10 years agoUpdate the TODO.
Michael Orlitzky [Mon, 7 Oct 2013 18:04:50 +0000 (14:04 -0400)]
Update the TODO.

10 years agoAdd some fixture code.
Michael Orlitzky [Mon, 7 Oct 2013 18:03:19 +0000 (14:03 -0400)]
Add some fixture code.

10 years agoAdd a test suite which just creates/deletes databases for now.
Michael Orlitzky [Mon, 7 Oct 2013 14:21:19 +0000 (10:21 -0400)]
Add a test suite which just creates/deletes databases for now.

10 years agoPass a Configuration object to each plugin's initialize().
Michael Orlitzky [Mon, 7 Oct 2013 14:20:46 +0000 (10:20 -0400)]
Pass a Configuration object to each plugin's initialize().

10 years agoAdd a Rakefile.
Michael Orlitzky [Mon, 7 Oct 2013 13:16:29 +0000 (09:16 -0400)]
Add a Rakefile.

10 years agoOnly output the header when there's plugin output.
Michael Orlitzky [Sun, 6 Oct 2013 23:05:34 +0000 (19:05 -0400)]
Only output the header when there's plugin output.

10 years agoGet prune working, at least in a simple case.
Michael Orlitzky [Sun, 6 Oct 2013 22:55:50 +0000 (18:55 -0400)]
Get prune working, at least in a simple case.

10 years agoUpdate TODO.
Michael Orlitzky [Sun, 6 Oct 2013 20:09:14 +0000 (16:09 -0400)]
Update TODO.

10 years agoRename PostfixadminDb, RoundcubeDb without the Db suffix.
Michael Orlitzky [Sun, 6 Oct 2013 20:06:57 +0000 (16:06 -0400)]
Rename PostfixadminDb, RoundcubeDb without the Db suffix.
Make PostfixadminDb a regular plugin.

10 years agoImplement user_exists() everywhere and use it to correct the console output.
Michael Orlitzky [Sun, 6 Oct 2013 19:43:45 +0000 (15:43 -0400)]
Implement user_exists() everywhere and use it to correct the console output.

10 years agoMove domain removal into the plugins.
Michael Orlitzky [Sun, 6 Oct 2013 19:35:18 +0000 (15:35 -0400)]
Move domain removal into the plugins.

10 years agoMove the LICENSE and README into a doc/ folder.
Michael Orlitzky [Mon, 30 Sep 2013 02:11:49 +0000 (22:11 -0400)]
Move the LICENSE and README into a doc/ folder.
Add a TODO.

10 years agoWay too many changes to mention. The 'rm' mode works now.
Michael Orlitzky [Mon, 30 Sep 2013 01:27:24 +0000 (21:27 -0400)]
Way too many changes to mention. The 'rm' mode works now.

10 years agoAdd a bunch more crap and rewrite a bunch more crap. Now the 'rm' mode at least runs.
Michael Orlitzky [Sun, 29 Sep 2013 22:12:51 +0000 (18:12 -0400)]
Add a bunch more crap and rewrite a bunch more crap. Now the 'rm' mode at least runs.

10 years agoIn the middle of refactoring the binary to accept three modes of execution. Does...
Michael Orlitzky [Thu, 29 Aug 2013 18:32:51 +0000 (14:32 -0400)]
In the middle of refactoring the binary to accept three modes of execution. Does nothing at the moment.

10 years agoFix typo in mv_plugin.
Michael Orlitzky [Thu, 29 Aug 2013 16:21:37 +0000 (12:21 -0400)]
Fix typo in mv_plugin.
Rename the 'rm' plugin classes with an 'Rm' suffix.

10 years agoAdd default configuration for Agendav and DAViCal.
Michael Orlitzky [Thu, 29 Aug 2013 16:21:11 +0000 (12:21 -0400)]
Add default configuration for Agendav and DAViCal.

11 years agoBegin building the framework to rename accounts. A pile of crap right now.
Michael Orlitzky [Tue, 19 Mar 2013 19:48:20 +0000 (15:48 -0400)]
Begin building the framework to rename accounts. A pile of crap right now.

11 years agoFactor out common code that can be used to mv (rename) accounts.
Michael Orlitzky [Tue, 19 Mar 2013 18:38:35 +0000 (14:38 -0400)]
Factor out common code that can be used to mv (rename) accounts.
Separate Plugin/RmPlugin modules.

11 years agoDon't cast the username to an int in the AgenDAV plugin.
Michael Orlitzky [Tue, 19 Mar 2013 16:46:43 +0000 (12:46 -0400)]
Don't cast the username to an int in the AgenDAV plugin.

11 years agoAdd a missing space in the header.
Michael Orlitzky [Tue, 19 Mar 2013 15:56:04 +0000 (11:56 -0400)]
Add a missing space in the header.
One more try at retrieving the DAViCal principal_id.

11 years agoPrint the plugin name on the same line as the executable, time.
Michael Orlitzky [Tue, 19 Mar 2013 15:47:13 +0000 (11:47 -0400)]
Print the plugin name on the same line as the executable, time.

11 years agoFix table name (again) in DAViCal plugin.
Michael Orlitzky [Tue, 19 Mar 2013 15:42:09 +0000 (11:42 -0400)]
Fix table name (again) in DAViCal plugin.

11 years agoFix table name in DAViCal plugin.
Michael Orlitzky [Tue, 19 Mar 2013 15:38:28 +0000 (11:38 -0400)]
Fix table name in DAViCal plugin.

11 years agoRemove unnecessary queries from the Roundcube plugin.
Michael Orlitzky [Tue, 19 Mar 2013 15:38:12 +0000 (11:38 -0400)]
Remove unnecessary queries from the Roundcube plugin.

11 years agoIgnore the DAViCal superuser.
Michael Orlitzky [Mon, 18 Mar 2013 23:50:59 +0000 (19:50 -0400)]
Ignore the DAViCal superuser.

11 years agoWhitespace/comment cleanup.
Michael Orlitzky [Mon, 18 Mar 2013 23:46:31 +0000 (19:46 -0400)]
Whitespace/comment cleanup.

11 years agoAdd another totally-untested plugin: davical.
Michael Orlitzky [Mon, 18 Mar 2013 23:44:57 +0000 (19:44 -0400)]
Add another totally-untested plugin: davical.

11 years agoAdd explicit "self." in one place.
Michael Orlitzky [Mon, 18 Mar 2013 23:42:23 +0000 (19:42 -0400)]
Add explicit "self." in one place.

11 years agoAdd AgenDAV plugin, totally untested.
Michael Orlitzky [Mon, 18 Mar 2013 22:15:51 +0000 (18:15 -0400)]
Add AgenDAV plugin, totally untested.

11 years agoFix a comment.
Michael Orlitzky [Mon, 18 Mar 2013 22:13:44 +0000 (18:13 -0400)]
Fix a comment.

11 years agoAdd the domain/account name to NonexistentDomain/Account errors.
Michael Orlitzky [Mon, 16 Jul 2012 14:25:12 +0000 (10:25 -0400)]
Add the domain/account name to NonexistentDomain/Account errors.

12 years agoAdd the example configuration file.
Michael Orlitzky [Thu, 19 Apr 2012 14:35:40 +0000 (10:35 -0400)]
Add the example configuration file.

12 years agoGet the new YAML-based configuration working, and update the README.
Michael Orlitzky [Thu, 19 Apr 2012 14:34:58 +0000 (10:34 -0400)]
Get the new YAML-based configuration working, and update the README.

12 years agoFix another call to the (removed) Configuration module.
Michael Orlitzky [Thu, 19 Apr 2012 14:17:28 +0000 (10:17 -0400)]
Fix another call to the (removed) Configuration module.

12 years agoUpdate the rest of the code to use the new Configuration class.
Michael Orlitzky [Thu, 19 Apr 2012 13:55:59 +0000 (09:55 -0400)]
Update the rest of the code to use the new Configuration class.

12 years agoAdd a Configuration class which loads a user YAML file instead of Ruby code.
Michael Orlitzky [Thu, 19 Apr 2012 13:55:22 +0000 (09:55 -0400)]
Add a Configuration class which loads a user YAML file instead of Ruby code.

12 years agoRemove the default configuration module.
Michael Orlitzky [Thu, 19 Apr 2012 13:55:04 +0000 (09:55 -0400)]
Remove the default configuration module.

12 years agoSwitch from constants to variables in the Configuration module. This should keep...
Michael Orlitzky [Thu, 19 Apr 2012 12:54:01 +0000 (08:54 -0400)]
Switch from constants to variables in the Configuration module. This should keep Ruby from complaining when users override the defaults.
Change the local config path from $HOME/.mailshears.conf to $HOME/.mailshears.conf.rb so that Ruby will actually load it.

12 years agoAdd a README file.
Michael Orlitzky [Mon, 16 Apr 2012 02:58:13 +0000 (22:58 -0400)]
Add a README file.

12 years agoReorder the default config file to make more sense.
Michael Orlitzky [Mon, 16 Apr 2012 02:58:00 +0000 (22:58 -0400)]
Reorder the default config file to make more sense.

12 years agoUpdate the homepage in the gemspec file.
Michael Orlitzky [Mon, 16 Apr 2012 02:57:26 +0000 (22:57 -0400)]
Update the homepage in the gemspec file.

12 years agoBe silent if the user does not have a configuration file.
Michael Orlitzky [Mon, 9 Apr 2012 01:05:33 +0000 (21:05 -0400)]
Be silent if the user does not have a configuration file.

12 years agoLoad the default configuration file in lib/mailshears.rb.
Michael Orlitzky [Mon, 9 Apr 2012 00:59:51 +0000 (20:59 -0400)]
Load the default configuration file in lib/mailshears.rb.
Allow the user to load his own configuration file, overriding the defaults.

12 years agoRestructure the lib directory to avoid name collisions.
Michael Orlitzky [Mon, 9 Apr 2012 00:50:11 +0000 (20:50 -0400)]
Restructure the lib directory to avoid name collisions.

12 years agoAdd the GPL3 'LICENSE' file.
Michael Orlitzky [Mon, 9 Apr 2012 00:29:45 +0000 (20:29 -0400)]
Add the GPL3 'LICENSE' file.
Remove load path magic in the executable.
Update relative paths since rubygems should add 'lib' to the load path.
Add a gemspec file.

12 years agoRename 'src' to 'lib' to match every other Ruby project on earth.
Michael Orlitzky [Sun, 8 Apr 2012 23:50:00 +0000 (19:50 -0400)]
Rename 'src' to 'lib' to match every other Ruby project on earth.

12 years agoUpdate the RoundcubeDb plugin for v0.7.
Michael Orlitzky [Sat, 14 Jan 2012 20:43:24 +0000 (15:43 -0500)]
Update the RoundcubeDb plugin for v0.7.

12 years agoDelete accounts before domains.
Michael Orlitzky [Fri, 8 Jul 2011 17:01:46 +0000 (13:01 -0400)]
Delete accounts before domains.

13 years agoGet the domain/account descriptions before deleting them.
Michael Orlitzky [Thu, 3 Feb 2011 17:47:36 +0000 (12:47 -0500)]
Get the domain/account descriptions before deleting them.

13 years agoHandle the case where an account's domain has already been deleted (and thus the...
Michael Orlitzky [Thu, 3 Feb 2011 17:24:30 +0000 (12:24 -0500)]
Handle the case where an account's domain has already been deleted (and thus the account is gone when we try to delete it).

13 years agoMake describe_domain work (for DovecotMailstore) even after a domain is removed.
Michael Orlitzky [Thu, 6 Jan 2011 17:03:30 +0000 (12:03 -0500)]
Make describe_domain work (for DovecotMailstore) even after a domain is removed.

13 years agoMake describe_account work (for DovecotMailstore) even after an account is removed.
Michael Orlitzky [Tue, 4 Jan 2011 19:48:16 +0000 (14:48 -0500)]
Make describe_account work (for DovecotMailstore) even after an account is removed.

13 years agoAdd the roundcube_db plugin.
Michael Orlitzky [Sun, 26 Dec 2010 22:18:08 +0000 (17:18 -0500)]
Add the roundcube_db plugin.

13 years agoEnable the roundcube_db plugin (in the config file) and add its configuration paramet...
Michael Orlitzky [Sun, 26 Dec 2010 21:45:32 +0000 (16:45 -0500)]
Enable the roundcube_db plugin (in the config file) and add its configuration parameters to the config file.

13 years agoUpdate the PostfixadminDb class to use the newer 'pg' module.
Michael Orlitzky [Sun, 26 Dec 2010 21:34:34 +0000 (16:34 -0500)]
Update the PostfixadminDb class to use the newer 'pg' module.

13 years agoFix a bug in the header output.
Michael Orlitzky [Sun, 26 Dec 2010 21:33:57 +0000 (16:33 -0500)]
Fix a bug in the header output.

13 years agoGeneralize the plugin mechanism with a Plugin module that knows when it's included.
Michael Orlitzky [Sun, 26 Dec 2010 20:28:43 +0000 (15:28 -0500)]
Generalize the plugin mechanism with a Plugin module that knows when it's included.

13 years agoChange the way the plugins are included (by file name, not class name).
Michael Orlitzky [Sun, 26 Dec 2010 20:28:02 +0000 (15:28 -0500)]
Change the way the plugins are included (by file name, not class name).

13 years agoConvert DovecotMailstore to a plugin, and generalize the main mailshears script to...
Michael Orlitzky [Sun, 26 Dec 2010 20:08:24 +0000 (15:08 -0500)]
Convert DovecotMailstore to a plugin, and generalize the main mailshears script to execute a series of plugins in succession.

13 years agoAdd a PLUGINS configuration option.
Michael Orlitzky [Sun, 26 Dec 2010 20:07:24 +0000 (15:07 -0500)]
Add a PLUGINS configuration option.

13 years agoRemove the default initializer for the Mailstore class.
Michael Orlitzky [Sun, 26 Dec 2010 19:52:38 +0000 (14:52 -0500)]
Remove the default initializer for the Mailstore class.

13 years agoActually remove directories when I_MEAN_BUSINESS == true.
Michael Orlitzky [Sat, 25 Dec 2010 16:13:22 +0000 (11:13 -0500)]
Actually remove directories when I_MEAN_BUSINESS == true.

13 years agoAdded the I_MEAN_BUSINESS configuration parameter, and the code to delete domains...
Michael Orlitzky [Wed, 1 Sep 2010 16:16:41 +0000 (12:16 -0400)]
Added the I_MEAN_BUSINESS configuration parameter, and the code to delete domains/accounts.

13 years agoAdded error handling to the domain/account path methods.
Michael Orlitzky [Wed, 14 Jul 2010 00:44:08 +0000 (20:44 -0400)]
Added error handling to the domain/account path methods.

13 years agoAdded three new error classes: InvalidAccountError, NonexistentAccountError, and...
Michael Orlitzky [Tue, 13 Jul 2010 19:46:33 +0000 (15:46 -0400)]
Added three new error classes: InvalidAccountError, NonexistentAccountError, and NonexistentDomainError.

13 years agoAdded the domain/account path to the output.
Michael Orlitzky [Tue, 13 Jul 2010 19:42:41 +0000 (15:42 -0400)]
Added the domain/account path to the output.

13 years agoImplemented get_domain_path and get_account_path in DovecotMailstore.
Michael Orlitzky [Tue, 13 Jul 2010 19:42:14 +0000 (15:42 -0400)]
Implemented get_domain_path and get_account_path in DovecotMailstore.

13 years agoAdded some more virtual function definitions to the Mailstore class.
Michael Orlitzky [Tue, 13 Jul 2010 19:41:45 +0000 (15:41 -0400)]
Added some more virtual function definitions to the Mailstore class.

13 years agoMissing parenthesis in a comment!
Michael Orlitzky [Tue, 13 Jul 2010 15:25:44 +0000 (11:25 -0400)]
Missing parenthesis in a comment!

13 years agoOnly enumerate accounts in domains whose folders exist.
Michael Orlitzky [Sun, 13 Jun 2010 15:51:41 +0000 (11:51 -0400)]
Only enumerate accounts in domains whose folders exist.

13 years agoIgnore the 'ALL' domain.
Michael Orlitzky [Sun, 13 Jun 2010 15:45:59 +0000 (11:45 -0400)]
Ignore the 'ALL' domain.

13 years agoFirst attempt at making mailshears report deleted domains as such.
Michael Orlitzky [Sun, 13 Jun 2010 15:41:42 +0000 (11:41 -0400)]
First attempt at making mailshears report deleted domains as such.

13 years agoAdded the get_domains_from_filesystem function to the DovecotMailstore class.
Michael Orlitzky [Sun, 13 Jun 2010 15:40:23 +0000 (11:40 -0400)]
Added the get_domains_from_filesystem function to the DovecotMailstore class.
Make get_accounts_from_filesystem take its list of domains as a parameter.

13 years agoAdded the get_domains_from_db() function to the PostfixadminDb class.
Michael Orlitzky [Sun, 13 Jun 2010 15:39:19 +0000 (11:39 -0400)]
Added the get_domains_from_db() function to the PostfixadminDb class.

14 years agoUse the 'mailbox' table instead of 'alias'; the alias.goto field can contain a list...
Michael Orlitzky [Sat, 20 Mar 2010 18:13:44 +0000 (14:13 -0400)]
Use the 'mailbox' table instead of 'alias'; the alias.goto field can contain a list of comma-separated values which gets messy.

14 years agoFixed an array-nesting bug.
Michael Orlitzky [Sat, 13 Feb 2010 15:42:05 +0000 (10:42 -0500)]
Fixed an array-nesting bug.

14 years agoPrettied up the output with a header.
Michael Orlitzky [Thu, 11 Feb 2010 19:26:50 +0000 (14:26 -0500)]
Prettied up the output with a header.

14 years agoFlatten the SQL result set so that the array difference actually works.
Michael Orlitzky [Thu, 11 Feb 2010 00:49:50 +0000 (19:49 -0500)]
Flatten the SQL result set so that the array difference actually works.
Modified the SQL query to select only those accounts which are being delivered locally.

14 years agoInitial commit.
Michael Orlitzky [Thu, 11 Feb 2010 00:33:32 +0000 (19:33 -0500)]
Initial commit.