aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancis Irving <francis@mysociety.org>2010-04-14 12:09:30 +0100
committerFrancis Irving <francis@mysociety.org>2010-04-14 12:09:30 +0100
commit4c1b3b20085293bfbe5c8428a30a9f1f33b61418 (patch)
treeeef2f4d250c6fca5b973a62e97fe8a1f8f63e1bc
parentc68d9130acb1cd8c54f83c8a4c5a70d6afaade17 (diff)
Factor out partial step into variable
-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