Add the attachment-only option to a source

The upload request can now contain a boolean for importing only
attachments when e-mails are uploaded. This option is now also added
to a source url.

Refs: #983
This commit is contained in:
eikek
2021-08-23 14:19:11 +02:00
parent 45f6357f49
commit 993a391c13
9 changed files with 71 additions and 7 deletions

View File

@ -31,6 +31,7 @@ type alias Texts =
, language : String
, languageInfo : String
, languageLabel : Language -> String
, attachmentsOnly : String
}
@ -61,6 +62,7 @@ Specify a file glob to filter files when uploading archives
"Used for text extraction and analysis. The collective's "
++ "default language is used if not specified here."
, languageLabel = Messages.Data.Language.gb
, attachmentsOnly = "Only import attachments for e-mails"
}
@ -93,4 +95,5 @@ importieren: `*.pdf`. Globs können auch mittels OR kombiniert werden:
"Wird für die Texterkennung und -analyse verwendet. Die Standardsprache des Kollektivs "
++ "wird verwendet, falls hier nicht angegeben."
, languageLabel = Messages.Data.Language.de
, attachmentsOnly = "Bei E-Mails nur die Anhänge importieren"
}