mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-22 10:28:27 +00:00
Add attachments-only filter to uploads
When uploading a file which is an e-mail, this option allows to skip the mail body when the file is being processed.
This commit is contained in:
@ -73,7 +73,8 @@ object OUpload {
|
||||
skipDuplicates: Boolean,
|
||||
fileFilter: Glob,
|
||||
tags: List[String],
|
||||
language: Option[Language]
|
||||
language: Option[Language],
|
||||
attachmentsOnly: Option[Boolean]
|
||||
)
|
||||
|
||||
case class UploadData[F[_]](
|
||||
@ -150,7 +151,8 @@ object OUpload {
|
||||
data.meta.skipDuplicates,
|
||||
data.meta.fileFilter.some,
|
||||
data.meta.tags.some,
|
||||
false
|
||||
false,
|
||||
data.meta.attachmentsOnly
|
||||
)
|
||||
args =
|
||||
if (data.multiple) files.map(f => ProcessItemArgs(meta, List(f)))
|
||||
|
Reference in New Issue
Block a user