# Parse csv attachment in email with IMAP

**URL:** <https://discuss.elastic.co/t/parse-csv-attachment-in-email-with-imap/251006>\
**Category:** Logstash\
**Created:** [October 5, 2020, 2:21pm UTC](https://discuss.elastic.co/t/parse-csv-attachment-in-email-with-imap/251006 "2020-10-05T14:21:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![charles97](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/charles97/32/79243_2.png) [@charles97](https://discuss.elastic.co/u/charles97)\
**Post date:** [October 5, 2020, 2:21pm UTC](https://discuss.elastic.co/t/parse-csv-attachment-in-email-with-imap/251006/1 "2020-10-05T14:21:39Z")

</div>

I have this kind of use case where I have to parse email's attachment that have .csv format.  
I saw that logstash offer **IMAP** input and I saw [save\_attachments](https://www.elastic.co/guide/en/logstash/current/plugins-inputs-imap.html#plugins-inputs-imap-save_attachments) and [strip\_attachments](https://www.elastic.co/guide/en/logstash/current/plugins-inputs-imap.html#plugins-inputs-imap-strip_attachments) but how do I use it to do with my use case? I did not find much documentation about how to use it.  
Questions:

1. Is it possible to parse attachment in email? If yes, how? If no, is there any suggestion to do with my use case?
2. What is the use and how to use configuration options above?  
Thank you

Thank 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:** [November 2, 2020, 2:21pm UTC](https://discuss.elastic.co/t/parse-csv-attachment-in-email-with-imap/251006/2 "2020-11-02T14:21:43Z")

</div>

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