# File lib/vmail/message_formatter.rb, line 113 def extract_headers(mail = @mail) headers = {'from' => utf8(mail['from'].decoded), 'date' => (mail.date.strftime('%a, %b %d %I:%M %p %Z %Y') rescue mail.date), 'to' => mail['to'].nil? ? nil : utf8(mail['to'].decoded), 'subject' => utf8(mail.subject) } if !mail.cc.nil? headers['cc'] = utf8(mail['cc'].decoded.to_s) end if !mail.reply_to.nil? headers['reply_to'] = utf8(mail['reply_to'].decoded) end headers rescue {'error' => $!} end