vmail 2.8.5 → 2.8.6
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/lib/vmail.rb +1 -1
- data/lib/vmail/options.rb +0 -6
- data/lib/vmail/version.rb +1 -1
- metadata +1 -1
data/lib/vmail.rb
CHANGED
@@ -37,8 +37,8 @@ module Vmail
|
|
37
37
|
working_dir = ENV['VMAIL_HOME'] || "#{ENV['HOME']}/.vmail/default"
|
38
38
|
`mkdir -p #{working_dir}`
|
39
39
|
puts "Changing working directory to #{working_dir}"
|
40
|
-
opts = Vmail::Options.new(ARGV)
|
41
40
|
Dir.chdir(working_dir)
|
41
|
+
opts = Vmail::Options.new(ARGV)
|
42
42
|
opts.config
|
43
43
|
config = opts.config
|
44
44
|
|
data/lib/vmail/options.rb
CHANGED
@@ -23,12 +23,6 @@ module Vmail
|
|
23
23
|
opts.banner = "Usage: vmail [ options ] [ limit ] [ imap search query ]"
|
24
24
|
opts.separator ""
|
25
25
|
opts.separator "Specific options:"
|
26
|
-
opts.on("-c", "--config path", String, "Path to config file") do |config_file|
|
27
|
-
@config_file = File.expand_path(config_file)
|
28
|
-
end
|
29
|
-
opts.on("-t", "--contacts path", String, "Path to contacts file") do |file|
|
30
|
-
@contacts_file = File.expand_path(file, Dir.pwd)
|
31
|
-
end
|
32
26
|
opts.on("-g[n]", "--getcontacts[n]", Integer, "Generate contacts file. n is number of emails to scan (default 500).") do |n|
|
33
27
|
@get_contacts = true
|
34
28
|
@max_messages_to_scan = n || 500
|
data/lib/vmail/version.rb
CHANGED