aboutsummaryrefslogtreecommitdiffstats
path: root/app/models
diff options
context:
space:
mode:
Diffstat (limited to 'app/models')
-rw-r--r--app/models/incoming_message.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/models/incoming_message.rb b/app/models/incoming_message.rb
index e890a211a..dca9e4851 100644
--- a/app/models/incoming_message.rb
+++ b/app/models/incoming_message.rb
@@ -1044,7 +1044,8 @@ class IncomingMessage < ActiveRecord::Base
headers = ""
for header in [ 'Date', 'Subject', 'From', 'To', 'Cc' ]
if leaf.within_rfc822_attachment.header.include?(header.downcase)
- headers = headers + header + ": " + leaf.within_rfc822_attachment.header[header.downcase].to_s + "\n"
+ header_value = leaf.within_rfc822_attachment.header[header.downcase]
+ headers = headers + header + ": " + header_value.to_s + "\n"
end
end
# XXX call _convert_part_body_to_text here, but need to get charset somehow