vmail 2.6.4 → 2.6.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -22,7 +22,12 @@ module Vmail
22
22
  results.reverse.map do |x|
23
23
  envelope = x.attr["ENVELOPE"]
24
24
  message_id = envelope.message_id
25
- subject = Mail::Encodings.unquote_and_convert_to((envelope.subject || ''), 'UTF-8')
25
+ begin
26
+ subject = Mail::Encodings.unquote_and_convert_to((envelope.subject || ''), 'UTF-8')
27
+ rescue Encoding::UndefinedConversionError
28
+ log "Encoding::UndefinedConversionError:\n#{[$!.message, $!.backtrace].join("\n")}"
29
+ subject = "[encoding could not be converted to UTF-8]"
30
+ end
26
31
  recipients = ((envelope.to || []) + (envelope.cc || [])).map {|a| extract_address(a)}.join(', ')
27
32
  sender = extract_address envelope.from.first
28
33
  uid = x.attr["UID"]
data/lib/vmail/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Vmail
2
- VERSION = '2.6.4'
2
+ VERSION = '2.6.5'
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.6.4
4
+ version: 2.6.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: