Fix frozen email string problem in mbox.rb

This commit is contained in:
Hanwen (Steinway) Wu 2016-06-24 13:59:01 -04:00 committed by GitHub
parent 3232ce8265
commit 3501c86cc8

View File

@ -124,7 +124,7 @@ class ImportScripts::Mbox < ImportScripts::Base
if mail.from.present?
from_email = mail.from.dup
if from_email.kind_of?(Array)
from_email = from_email.first
from_email = from_email.first.dup
end
from_email.gsub!(/ at /, '@')