Add a folder-id to item processing

This allows to define a folder when uploading files. All generated
items are associated to this folder on creation.
This commit is contained in:
Eike Kettner
2020-07-14 21:25:44 +02:00
parent ec7f027b4e
commit 5b01c93711
14 changed files with 126 additions and 24 deletions

View File

@ -36,6 +36,7 @@ object ProcessItemArgs {
language: Language,
direction: Option[Direction],
sourceAbbrev: String,
folderId: Option[Ident],
validFileTypes: Seq[MimeType]
)

View File

@ -27,7 +27,9 @@ case class ScanMailboxArgs(
// delete the after submitting (only if targetFolder is None)
deleteMail: Boolean,
// set the direction when submitting
direction: Option[Direction]
direction: Option[Direction],
// set a folder for items
itemFolder: Option[Ident]
)
object ScanMailboxArgs {