vmail 2.4.3 → 2.4.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -271,16 +271,16 @@ module Vmail
271
271
  end
272
272
  end
273
273
 
274
- def append_to_file(uid_set, file)
275
- uid_set = uid_set.split(',').map(&:to_i)
276
- log "Append to file uid set #{uid_set.inspect} to file: #{file}"
277
- uid_set.each do |uid|
278
- message = show_message(uid)
274
+ def append_to_file(message_ids, file)
275
+ message_ids = message_ids.split(',')
276
+ log "Append to file uid set #{message_ids.inspect} to file: #{file}"
277
+ message_ids.each do |message_id|
278
+ message = show_message(message_id)
279
279
  File.open(file, 'a') {|f| f.puts(divider('=') + "\n" + message + "\n\n")}
280
280
  subject = (message[/^subject:(.*)/,1] || '').strip
281
281
  log "Appended message '#{subject}'"
282
282
  end
283
- "Printed #{uid_set.size} message#{uid_set.size == 1 ? '' : 's'} to #{file.strip}"
283
+ "Printed #{message_ids.size} message#{message_ids.size == 1 ? '' : 's'} to #{file.strip}"
284
284
  end
285
285
 
286
286
  def new_message_template(subject = nil, append_signature = true)
@@ -1,3 +1,3 @@
1
1
  module Vmail
2
- VERSION = '2.4.3'
2
+ VERSION = '2.4.4'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vmail
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.3
4
+ version: 2.4.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-11-25 00:00:00.000000000Z
12
+ date: 2011-12-15 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: mail
16
- requirement: &8957860 !ruby/object:Gem::Requirement
16
+ requirement: &10074980 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 2.2.12
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *8957860
24
+ version_requirements: *10074980
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: highline
27
- requirement: &8926160 !ruby/object:Gem::Requirement
27
+ requirement: &10074420 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 1.6.1
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *8926160
35
+ version_requirements: *10074420
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: sequel
38
- requirement: &8925680 !ruby/object:Gem::Requirement
38
+ requirement: &10072540 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: 3.24.1
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *8925680
46
+ version_requirements: *10072540
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: sqlite3
49
- requirement: &8925220 !ruby/object:Gem::Requirement
49
+ requirement: &10071860 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,7 +54,7 @@ dependencies:
54
54
  version: 1.3.3
55
55
  type: :runtime
56
56
  prerelease: false
57
- version_requirements: *8925220
57
+ version_requirements: *10071860
58
58
  description: Manage your email with Vim
59
59
  email:
60
60
  - dhchoi@gmail.com