Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.rdoc
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ Code Improvements:

Bug Fixes:

* Use lazy fields accessor for empty header operations @OskarEichler

* Regression: Preserve message-level charset when adding parts (related to Rails ActionMailer) @shields
* Regression: Adding a part should not reset the mail's charset to nil @railsbob

Expand Down
4 changes: 2 additions & 2 deletions lib/mail/header.rb
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def initialize(header_text = nil, charset = nil)

def initialize_copy(original)
super
@fields = @fields.dup
@fields = fields.dup
@fields.map!(&:dup)
end

Expand Down Expand Up @@ -103,7 +103,7 @@ def fields=(unfolded_fields)
end

def errors
@fields.map(&:errors).flatten(1)
fields.map(&:errors).flatten(1)
end

# 3.6. Field definitions
Expand Down