mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 06:37:19 -04:00
Restore patch from #1144 that was somehow lost.
This commit is contained in:
parent
341ab0f05e
commit
e9bfe3fbce
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue