Input imap - undefined method encode for nil:NilClass

Description

My initial test yielded the following stack dump.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 Pipeline started {:level=>:info, :file=>"logstash/pipeline.rb", :line=>"78"} A plugin had an unrecoverable error. Will restart this plugin. Plugin: <LogStash::Inputs::IMAP host=>"mx2.serversresort.com", user=>"giftulike", content_type=>"text/plain"> Error: undefined method `encode' for nil:NilClass Exception: NoMethodError Stack: /srv/logstash-1.4.1/lib/logstash/inputs/imap.rb:155:in `transcode_to_utf8' /srv/logstash-1.4.1/lib/logstash/inputs/imap.rb:124:in `parse_mail' org/jruby/RubyArray.java:1613:in `each' /srv/logstash-1.4.1/lib/logstash/inputs/imap.rb:112:in `parse_mail' /srv/logstash-1.4.1/lib/logstash/codecs/plain.rb:36:in `decode' /srv/logstash-1.4.1/lib/logstash/inputs/imap.rb:105:in `parse_mail' /srv/logstash-1.4.1/lib/logstash/inputs/imap.rb:83:in `check_mail' org/jruby/RubyArray.java:1613:in `each' /srv/logstash-1.4.1/lib/logstash/inputs/imap.rb:80:in `check_mail' org/jruby/RubyArray.java:1653:in `each_slice' /srv/logstash-1.4.1/lib/logstash/inputs/imap.rb:78:in `check_mail' /srv/logstash-1.4.1/lib/logstash/inputs/imap.rb:67:in `run' org/jruby/RubyProc.java:271:in `call' /srv/logstash-1.4.1/vendor/bundle/jruby/1.9/gems/stud-0.0.17/lib/stud/interval.rb:11:in `interval' /srv/logstash-1.4.1/lib/logstash/inputs/imap.rb:66:in `run' /srv/logstash-1.4.1/lib/logstash/pipeline.rb:163:in `inputworker' /srv/logstash-1.4.1/lib/logstash/pipeline.rb:157:in `start_input' {:level=>:error, :file=>"logstash/pipeline.rb", :line=>"168"}

Environment

None

Status

Assignee

Logstash Developers

Reporter

Jason Kendall

Labels

None

Affects versions

1.4.1 (bugfix only)

Priority