vmail 1.7.8 → 1.7.9

Sign up to get free protection for your applications and to get access to all the features.
@@ -21,13 +21,9 @@ module Vmail
21
21
  message_id = message_id.strip.gsub('\\', '')
22
22
  log "Show message: #{message_id.inspect}"
23
23
  return current_message.rfc822 if raw
24
+ res = retry_if_needed { fetch_and_cache(message_id) }
24
25
  log "Showing message message_id: #{message_id}"
25
- res = fetch_and_cache(message_id)
26
- if res.nil?
27
- # retry, though this is a hack!
28
- log "- data is nil. retrying..."
29
- return show_message(message_id, raw)
30
- end
26
+ @cur_message_id = message_id
31
27
  res
32
28
  end
33
29
 
@@ -73,7 +69,6 @@ EOF
73
69
  #log message_text
74
70
  raise
75
71
  end
76
- @cur_message_id = message.message_id
77
72
  message_text
78
73
  rescue
79
74
  msg = "Error encountered in fetch_and_cache(), message_id #{message_id} [#{@mailbox}]:\n#{$!}\n#{$!.backtrace.join("\n")}"
@@ -1,3 +1,3 @@
1
1
  module Vmail
2
- VERSION = '1.7.8'
2
+ VERSION = '1.7.9'
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: vmail
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 1.7.8
5
+ version: 1.7.9
6
6
  platform: ruby
7
7
  authors:
8
8
  - Daniel Choi