u-ichi / fluent-plugin-mail

Fluentd output plugin to send mail
https://rubygems.org/gems/fluent-plugin-mail
Other
48 stars 20 forks source link

delimeter problem with grepcounter plugin #17

Closed glaci-zz closed 8 years ago

glaci-zz commented 9 years ago

Hello author,

i've been encounter the problem with using fluentd grepcounter plugin

the default mail content type is text/plain so the grepcounter delimeter parameter won't work

it shows like:

count: 4 message: [com.app.productmanagement.server.businessObject.ProductManagementBO] add product failed\n[com.app.productmanagement.server.businessObject.ProductManagementBO] add product failed\n[com.app.productmanagement.server.businessObject.ProductManagementBO] add product failed

the delimeter: \n will not work and display as pure text. May you consider to add the option to setup mail content-type to text/html ?

sonots commented 9 years ago

Supporting content_type option sounds reasonable. PR is welcome!