# Connect imap Gmail

**URL:** <https://discuss.elastic.co/t/connect-imap-gmail/201279>\
**Category:** Logstash\
**Created:** [September 26, 2019, 5:16pm UTC](https://discuss.elastic.co/t/connect-imap-gmail/201279 "2019-09-26T17:16:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Klaus\_SIlva](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/klaus_silva/32/54959_2.png) [@Klaus\_SIlva](https://discuss.elastic.co/u/Klaus_SIlva)\
**Post date:** [September 26, 2019, 5:16pm UTC](https://discuss.elastic.co/t/connect-imap-gmail/201279/1 "2019-09-26T17:16:44Z")

</div>

Hi, I got the problem on logstash when [imap.gmai.com](http://imap.gmai.com). My your configuration in input imap, below with error

> ```
> input {
> imap {
> host => "imap.gmail.com"
> user => " ***** @gmail.com"
> password => " *****"
> port => 993
> fetch_count => 1
> check_interval => 3600
> secure => true
> verify_cert => false
> }
> }
> 
> ```

ERROR:  
":message=\>"Can not decode an entire message, try calling #decoded on the various fields and body or parts if it is a multipart message.",""

Thanks You

---

<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:** [October 24, 2019, 5:16pm UTC](https://discuss.elastic.co/t/connect-imap-gmail/201279/2 "2019-10-24T17:16:51Z")

</div>

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