mikel/mail — pull request #350 by ged (2012-02-09 03:38:10+00:00)
Title: Make Mail::Header properly Enumerable

Mail::Header doesn't implement #each even though it includes Enumerable, which causes any of the Enumerable methods to raise an exception:

address_fields = message.header.find_all {|h| h.field.respond_to?(:address) }
NoMethodError: undefined method `each' for #

The commit in question adds a spec that tests for #each via the Enumerable API, and a fix that delegates Header's #each to its fields.