# Imap input plugin error: Error: syntax: expecting '(', found '\\' on win2012

**URL:** <https://discuss.elastic.co/t/imap-input-plugin-error-error-syntax-expecting-found-on-win2012/106901>\
**Category:** Logstash\
**Created:** [November 8, 2017, 3:41pm UTC](https://discuss.elastic.co/t/imap-input-plugin-error-error-syntax-expecting-found-on-win2012/106901 "2017-11-08T15:41:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lintungwei](https://avatars.discourse-cdn.com/v4/letter/l/3da27b/32.png) [@lintungwei](https://discuss.elastic.co/u/lintungwei)\
**Post date:** [November 8, 2017, 3:41pm UTC](https://discuss.elastic.co/t/imap-input-plugin-error-error-syntax-expecting-found-on-win2012/106901/1 "2017-11-08T15:41:18Z")

</div>

Hi, I am setting up the imap input plugin. It works but after read several emails (fetch\_count). It give me the error "Error: syntax: expecting '(', found ''". Anyone have the same problem ? Thanks in advance.

My env : Win2012  
My config :  
input {  
imap {  
check\_interval =\> 20  
host =\> "[imap.zoho.com](http://imap.zoho.com)"  
password =\> "xxxxxxx"  
port =\> 993  
user =\> "tony@prowill.com"  
strip\_attachments =\> true  
fetch\_count =\> 2  
}  
}

---

<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:** [December 6, 2017, 3:41pm UTC](https://discuss.elastic.co/t/imap-input-plugin-error-error-syntax-expecting-found-on-win2012/106901/2 "2017-12-06T15:41:40Z")

</div>

Closed on December 6, 2017, 3:41pm UTC

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