imap_archiver 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/.gitignore CHANGED
@@ -17,5 +17,5 @@ tmtags
17
17
  coverage
18
18
  rdoc
19
19
  pkg
20
-
20
+ tmp
21
21
  ## PROJECT::SPECIFIC
data/README.rdoc CHANGED
@@ -1,6 +1,31 @@
1
1
  = imap_archiver
2
2
 
3
- Description goes here.
3
+ imap_archiver is a command line tool to archive messages on an imap server.
4
+ You tell it what folders to archive and where to archive it.
5
+ For every folder that is archived a series of folders (one for each month) is created inside the archive folder.
6
+
7
+ == Installing
8
+ gem install imap_archiver
9
+
10
+ == Configuration
11
+
12
+ Create a configuration file in ~/.imap_archiver.rb
13
+
14
+ ImapArchiver::Config.run do |config|
15
+ config.imap_server = 'imap.example.com'
16
+ config.username = 'jellehelsen'
17
+ config.password = "secret"
18
+ config.folders_to_archive = %w(Support Backuplogs)
19
+ config.archive_folder = 'Archive'
20
+ config.base_folder = 'Shared Folders' # part to strip of source folder name to get archive folder name
21
+ config.archive_folder_acl = {'jelle' => 'lrswpcd'}
22
+ end
23
+
24
+ == Known bugs
25
+
26
+ The documentation is sparse to non-existing.
27
+ It has only been tested against my own cyrus-imap server and a dovecot test server.
28
+ For all unknown bugs: file an issue report! Creating a patch yourself helps in getting it fixed quickly.
4
29
 
5
30
  == Note on Patches/Pull Requests
6
31
 
data/Rakefile CHANGED
@@ -14,7 +14,7 @@ begin
14
14
  gem.authors = ["Jelle Helsen"]
15
15
  gem.add_development_dependency "thoughtbot-shoulda", ">= 0"
16
16
  gem.add_development_dependency "aruba", ">= 0"
17
-
17
+ gem.add_dependency 'activesupport', '>= 3.0.0'
18
18
  # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
19
19
  end
20
20
  Jeweler::GemcutterTasks.new
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.1
1
+ 0.0.2
@@ -12,8 +12,6 @@ module ImapArchiver
12
12
 
13
13
  parser = OptionParser.new do |opts|
14
14
  opts.banner = <<-BANNER.gsub(/^ /,'')
15
- This application is wonderful because...
16
-
17
15
  Usage: #{File.basename($0)} [options]
18
16
 
19
17
  Options are:
data/spec/cli_spec.rb CHANGED
@@ -6,9 +6,7 @@ describe ImapArchiver::CLI do
6
6
  end
7
7
 
8
8
  it "should display the help message" do
9
- help_message = """This application is wonderful because...
10
-
11
- Usage: rspec [options]
9
+ help_message = """Usage: imap_archiver [options]
12
10
 
13
11
  Options are:
14
12
 
@@ -18,7 +16,8 @@ Options are:
18
16
  Default: ~/.imap_archiver.yml
19
17
  """
20
18
  io = StringIO.new
21
-
19
+ # OptionParser.any_instance.expects(:program_name).returns('imap_archiver')
20
+ $0='imap_archiver'
22
21
  lambda { ImapArchiver::CLI.execute(io,STDIN,['-h']) }.should raise_error(SystemExit)
23
22
  io.string.should == help_message
24
23
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: imap_archiver
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 27
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 1
10
- version: 0.0.1
9
+ - 2
10
+ version: 0.0.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jelle Helsen
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-09-01 00:00:00 +02:00
18
+ date: 2010-09-02 00:00:00 +02:00
19
19
  default_executable: imap_archiver
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -46,6 +46,22 @@ dependencies:
46
46
  version: "0"
47
47
  type: :development
48
48
  version_requirements: *id002
49
+ - !ruby/object:Gem::Dependency
50
+ name: activesupport
51
+ prerelease: false
52
+ requirement: &id003 !ruby/object:Gem::Requirement
53
+ none: false
54
+ requirements:
55
+ - - ">="
56
+ - !ruby/object:Gem::Version
57
+ hash: 7
58
+ segments:
59
+ - 3
60
+ - 0
61
+ - 0
62
+ version: 3.0.0
63
+ type: :runtime
64
+ version_requirements: *id003
49
65
  description: |-
50
66
  imap_archiver is a command line tool to archive messages on an imap server.
51
67
  You tell it what folders to archive and where to archive it.