vmail 2.6.4 → 2.6.5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/vmail/showing_headers.rb +6 -1
- data/lib/vmail/version.rb +1 -1
- metadata +1 -1
@@ -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
|
-
|
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