class Mail::Message

def [](name)

mail['foo'].to_s #=> '1234'
mail['foo'] = '1234'

Example:

Allows you to read an arbitrary header
def [](name)
  header[Utilities.underscoreize(name)]
end