HtmlBodyViewConfig

emil.jsoup.HtmlBodyViewConfig
See theHtmlBodyViewConfig companion object
case class HtmlBodyViewConfig(textToHtml: String => String, modify: Document => Document, dateFormat: DateTimeFormatter, zone: ZoneId)

Settings for creating a html document from a mail body.

Value parameters

dateFormat

If a mail header is supplied, html is amended with the datetime where this formatter is used

modify:

Allows to modify the parsed html tree. By default a cleaner is used with the default EmailWhiteList

textToHtml

in case there is only a plain text body, it must be converted to html. The default is a very simple approach, it is recommended to use the emil-markdown module for a more sophisticated variant.

zone

the timezone to use when formatting the datetime

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product