Restore patch from #1144 that was somehow lost.

This commit is contained in:
Jordan Sissel 2014-03-18 18:01:18 -07:00
parent 341ab0f05e
commit e9bfe3fbce

View file

@ -121,7 +121,7 @@ class LogStash::Inputs::IMAP < LogStash::Inputs::Base
# promote string to array if a header appears multiple times
# (like 'received')
when String; event[name] = [event[name], value]
when Array; event[name].is_a?(Array)
when Array; event[name] << value
when nil; event[name] = value
end
end # mail.header_fields.each