Add user-configurable option "delete_server_after"

The option sets timer in seconds after which all parts of the message
are deleted from the server.
This commit is contained in:
Alexander Krotov
2020-02-24 17:05:26 +03:00
parent 4f4241ba3a
commit a653e469f2
2 changed files with 31 additions and 2 deletions

View File

@@ -65,6 +65,14 @@ pub enum Config {
#[strum(props(default = "0"))]
KeyGenType,
/// Timer in seconds after which the message is deleted from the
/// server.
///
/// Equals to -1 by default, which means the message is never
/// deleted.
#[strum(props(default = "-1"))]
DeleteServerAfter,
SaveMimeHeaders,
ConfiguredAddr,
ConfiguredMailServer,