Remove obsolete code

This commit is contained in:
eikek
2022-01-11 21:09:38 +01:00
parent d0d37de6ac
commit 42d631876d
6 changed files with 10 additions and 274 deletions

View File

@ -0,0 +1,47 @@
/*
* Copyright 2020 Eike K. & Contributors
*
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
package docspell.common
import docspell.common.syntax.all._
import io.circe._
import io.circe.generic.semiauto._
/** Arguments to the notification task.
*
* This tasks queries items with a due date and informs the user via mail.
*
* If the structure changes, there must be some database migration to update or remove
* the json data of the corresponding task.
*
* @deprecated note: This has been removed and copied to this place to be able to
* migrate away from this structure. Replaced by PeriodicDueItemsArgs
*/
case class NotifyDueItemsArgs(
account: AccountId,
smtpConnection: Ident,
recipients: List[String],
itemDetailUrl: Option[LenientUri],
remindDays: Int,
daysBack: Option[Int],
tagsInclude: List[Ident],
tagsExclude: List[Ident]
)
object NotifyDueItemsArgs {
val taskName = Ident.unsafe("notify-due-items")
implicit val jsonEncoder: Encoder[NotifyDueItemsArgs] =
deriveEncoder[NotifyDueItemsArgs]
implicit val jsonDecoder: Decoder[NotifyDueItemsArgs] =
deriveDecoder[NotifyDueItemsArgs]
def parse(str: String): Either[Throwable, NotifyDueItemsArgs] =
str.parseJsonAs[NotifyDueItemsArgs]
}