Commit Graph

20 Commits

Author SHA1 Message Date
071f4067bf Use existing mimetype detection when storing files 2021-09-23 14:10:24 +02:00
1761526e20 Simplify MimeType class and parse mimetypes in a more lenient way 2021-09-23 14:10:24 +02:00
9013f2de5b Update scalafmt settings 2021-09-22 17:23:24 +02:00
9785db0683 Change license header of all files 2021-09-21 22:35:38 +02:00
e4fecefaea Reformat with scalafmt 3.0.0 2021-08-19 08:50:30 +02:00
1901fe1a8c Adopt deprecated APIs from fs2; use fs2.Path 2021-08-07 17:51:56 +02:00
558007235b Update tika-core to 2.0.0
Include new ODF parser from tika-2.0.0
2021-07-25 13:08:18 +02:00
8e5c88fd32 Add copyright header to source files 2021-07-04 10:57:53 +02:00
bd791b4593 Upgrade code base to CE3 2021-06-22 22:53:34 +02:00
4fd6e02ec0 Improve glob and filter archive entries 2020-11-11 21:01:23 +01:00
347a029af8 Scalafix organize-imports 2020-06-28 21:20:47 +02:00
c41cdeefec Update scalafmt to 2.5.1 + scalafmtAll 2020-05-04 23:53:57 +02:00
cf7ccd572c Improve handling encodings
Html and text files are not fixed to be UTF-8. The encoding is now
detected, which may not work for all files. Default/fallback will be
utf-8.

There is still a problem with mails that contain html parts not in
utf8 encoding. The mail text is always returned as a string and the
original encoding is lost. Then the html is stored using utf-8 bytes,
but wkhtmltopdf reads it using latin1. It seems that the `--encoding`
setting doesn't override encoding provided by the document.
2020-03-23 22:51:28 +01:00
6b1156182c Add support for eml (rfc822 email) files 2020-03-19 22:42:40 +01:00
4ed7a137f7 Add support for archive files
Each attachment is now first extracted into potentially multiple ones,
if it is recognized as an archive. This is the first step in
processing. The original archive file is also stored and the resulting
attachments are associated to their original archive.

First support is implemented for zip files.
2020-03-19 22:42:27 +01:00
2f87065b2e sbt scalafmtAll 2020-02-25 20:55:00 +01:00
9b1349734e Convert some files to pdf 2020-02-19 02:03:10 +01:00
e0682464b5 Configure pdf extraction; move Logger and DataType to common 2020-02-17 14:01:36 +01:00
8143a4edcc Adding extraction primitives 2020-02-16 21:37:26 +01:00
1309c8b7fa Move mimetype detection to docspell-files 2020-02-14 22:06:18 +01:00