summaryrefslogtreecommitdiff
path: root/lib/mailread.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/mailread.rb')
-rw-r--r--lib/mailread.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/mailread.rb b/lib/mailread.rb
index a5d60c84b47..8ec951e7541 100644
--- a/lib/mailread.rb
+++ b/lib/mailread.rb
@@ -15,7 +15,8 @@ class Mail
break if /^$/ # end of header
if /^(\S+):\s*(.*)/
- @header[attr = $1.capitalize!] = $2
+ (attr = $1).capitalize!
+ @header[attr] = $2
elsif attr
sub!(/^\s*/, '')
@header[attr] += "\n" + $_