# File /home/matt/rubymail/mail/header.rb, line 66 def [](name_or_index) if name_or_index.kind_of? Fixnum temp = @fields[name_or_index] temp = temp.value unless temp.nil? else name = field_name_format(name_or_index.to_s) result = detect { |n, v| if field_name_format(n) == name then true else false end } if result.nil? then nil else result[1] end end end