mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-04-04 10:29:34 +00:00
Update emil-common, emil-doobie, ... to 0.6.0
This commit is contained in:
parent
0946cd0966
commit
5d6658770e
@ -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 =
|
||||||
|
@ -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))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user