elasticsearch/logstash — pull request #1339 by samdoran (2014-05-07 19:12:10+00:00)
Title: Handle cases where logstash dies while decoding email headers.

This caused the plugin to crash with the following error:

A plugin had an unrecoverable error. Will restart this plugin.
Plugin: "foo.acme.com", user=>"johndoe", tags=>["imap"], content_type=>"text/plain">
Error: undefined method `encode' for nil:NilClass {:level=>:error}