lib/client.rb in navi_client-1.4.0 vs lib/client.rb in navi_client-1.4.1

- old
+ new

@@ -133,22 +133,12 @@ # def process_email(mail, uid) meta = Hash.new custom_uid = (Time.now.to_f * 1000).to_s + "_" + mail.__id__.to_s - invalid_to_email = mail.to.nil? || !mail.to.is_a?(Array) - - invalid_cc_email = mail.cc.nil? || !mail.cc.is_a?(Array) - - unless mail.from.nil? - if defined? mail.from.first - meta["from"] = mail.from.first - else - meta["from"] = mail.from - end - end - meta["to"] = invalid_to_email ? mail.to : mail.to.join(";") - meta["cc"] = mail.cc.join(";") unless invalid_cc_email + meta["from"] = mail[:from].to_s + meta["to"] = mail[:to].to_s + meta["cc"] = mail[:cc].to_s meta["subject"] = mail.subject meta["date"] = mail.date.to_s if mail.multipart? for i in 0...mail.parts.length