# Logstash-input-imap plugin error

**URL:** <https://discuss.elastic.co/t/logstash-input-imap-plugin-error/115166>\
**Category:** Logstash\
**Created:** [January 11, 2018, 7:52pm UTC](https://discuss.elastic.co/t/logstash-input-imap-plugin-error/115166 "2018-01-11T19:52:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sliu](https://avatars.discourse-cdn.com/v4/letter/s/a9a28c/32.png) [@sliu](https://discuss.elastic.co/u/sliu)\
**Post date:** [January 11, 2018, 7:52pm UTC](https://discuss.elastic.co/t/logstash-input-imap-plugin-error/115166/1 "2018-01-11T19:52:07Z")

</div>

We use logstash 5.4.1.  
Following the example here: [https://qbox.io/blog/indexing-emails-to-elasticsearch-logstash-imap](https://qbox.io/blog/indexing-emails-to-elasticsearch-logstash-imap), I got this error:  
[2018-01-11T14:22:38,062][ERROR][logstash.pipeline] A plugin had an unrecoverable error. Will restart this plugin.  
Plugin: \<LogStash::Inputs::IMAP host=\>"[outlook.xxx.com](http://outlook.xxx.com)", password=\>, user=\>"me@xxx.com", port=\>993, check\_interval=\>10, folder=\>"Inbox", secure=\>false, id=\>"7added54a47768e563c82563e5a6200xxxyy", enable\_metric=\>true, codec=\>\<LogStash::Codecs::Plain id=\>"plain\_8950870f-7b53-47f2-9340-309df76d96563", enable\_metric=\>true, charset=\>"UTF-8"\>, verify\_cert=\>true, fetch\_count=\>50, lowercase\_headers=\>true, delete=\>false, expunge=\>false, strip\_attachments=\>false, content\_type=\>"text/plain"\>  
Error: undefined method `name' for nil:NilClass

Any idea what might be the problem here? Thanks.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [February 8, 2018, 7:52pm UTC](https://discuss.elastic.co/t/logstash-input-imap-plugin-error/115166/2 "2018-02-08T19:52:42Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
