Logstash IMAP input unable to parse HTML email


#1

Hello,

I'm trying to use the logstash-input-imap plugin to parse email. I can read plain text emails OK but with an HTML email I get a page of HTML code as the message, rather than the text.

I have set the content_type to text/html - am I missing something here? This is my input:

input {
imap {
host => "server.domain.com"
password => "*"
user => "
"
tags => "some_tag"
check_interval => 30 # Specified in seconds
fetch_count => 100
type => "mail"
content_type => "text/html"
}
}

Thank you


(Magnus B├Ąck) #2

The imap filter doesn't parse HTML.


#3

Ah, that would explain it thank you


(system) #4

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