lib/client.rb in navi_client-1.2.0 vs lib/client.rb in navi_client-1.2.1

- old
+ new

@@ -89,12 +89,17 @@ def process_email(mail) 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) + return '' if invalid_to_email + + invalid_cc_email = mail.cc.nil? || !mail.cc.is_a?(Array) + meta["from"] = mail.from.first - meta["to"] = mail.to.join(";") unless mail.to.nil? - meta["cc"] = mail.cc.join(";") unless mail.cc.nil? + meta["to"] = mail.to.join(";") + meta["cc"] = mail.cc.join(";") unless invalid_cc_email meta["subject"] = mail.subject meta["date"] = mail.date.to_s if mail.multipart? for i in 0...mail.parts.length