vmail 1.7.8 → 1.7.9
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/vmail/showing_message.rb +2 -7
- data/lib/vmail/version.rb +1 -1
- metadata +1 -1
@@ -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
|
-
|
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")}"
|
data/lib/vmail/version.rb
CHANGED