Update emil-common, emil-doobie, ... to 0.6.0

This commit is contained in:
Scala Steward 2020-05-17 02:16:20 +02:00 committed by Eike Kettner
parent 0946cd0966
commit 5d6658770e
3 changed files with 6 additions and 6 deletions

View File

@ -7,7 +7,7 @@ import java.nio.charset.Charset
object JsoupSanitizer { object JsoupSanitizer {
val change = private val change =
BodyClean.whitelistClean(EmailWhitelist.default) BodyClean.whitelistClean(EmailWhitelist.default)
def clean(html: String): String = def clean(html: String): String =

View File

@ -7,10 +7,9 @@ import emil.{MimeType => _, _}
import emil.javamail.syntax._ import emil.javamail.syntax._
import emil.tnef.TnefExtract import emil.tnef.TnefExtract
import emil.markdown._ import emil.markdown._
import emil.jsoup.HtmlBodyView import emil.jsoup._
import docspell.common._ import docspell.common._
import docspell.joex.extract.JsoupSanitizer
object ReadMail { object ReadMail {
@ -34,8 +33,9 @@ object ReadMail {
HtmlBodyView( HtmlBodyView(
mail.body, mail.body,
Some(mail.header), Some(mail.header),
Some(MarkdownBody.makeHtml(markdownCfg)), HtmlBodyViewConfig.default.copy(
Some(JsoupSanitizer.change) textToHtml = MarkdownBody.makeHtml(markdownCfg)
)
).map(makeHtmlBinary[F] _).map(b => Some(b)) ).map(makeHtmlBinary[F] _).map(b => Some(b))
} }

View File

@ -10,7 +10,7 @@ object Dependencies {
val CalevVersion = "0.3.1" val CalevVersion = "0.3.1"
val CirceVersion = "0.13.0" val CirceVersion = "0.13.0"
val DoobieVersion = "0.9.0" val DoobieVersion = "0.9.0"
val EmilVersion = "0.5.1" val EmilVersion = "0.6.0"
val FastparseVersion = "2.1.3" val FastparseVersion = "2.1.3"
val FlexmarkVersion = "0.61.28" val FlexmarkVersion = "0.61.28"
val FlywayVersion = "6.4.2" val FlywayVersion = "6.4.2"