mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-02-17 04:01:29 -05:00
Fix frozen email string problem in mbox.rb
This commit is contained in:
parent
3232ce8265
commit
3501c86cc8
1 changed files with 1 additions and 1 deletions
|
@ -124,7 +124,7 @@ class ImportScripts::Mbox < ImportScripts::Base
|
||||||
if mail.from.present?
|
if mail.from.present?
|
||||||
from_email = mail.from.dup
|
from_email = mail.from.dup
|
||||||
if from_email.kind_of?(Array)
|
if from_email.kind_of?(Array)
|
||||||
from_email = from_email.first
|
from_email = from_email.first.dup
|
||||||
end
|
end
|
||||||
|
|
||||||
from_email.gsub!(/ at /, '@')
|
from_email.gsub!(/ at /, '@')
|
||||||
|
|
Loading…
Reference in a new issue