mirror of
https://github.com/chatmail/core.git
synced 2026-04-28 19:06:35 +03:00
expire old SKPI hashes
This commit is contained in:
11
src/sql.rs
11
src/sql.rs
@@ -874,6 +874,17 @@ pub async fn housekeeping(context: &Context) -> Result<()> {
|
||||
.log_err(context)
|
||||
.ok();
|
||||
|
||||
context
|
||||
.sql
|
||||
.execute(
|
||||
"DELETE FROM tls_spki WHERE ? > timestamp + ?",
|
||||
(time(), 30 * 24 * 60 * 60),
|
||||
)
|
||||
.await
|
||||
.context("Failed to prune SPKI store")
|
||||
.log_err(context)
|
||||
.ok();
|
||||
|
||||
// Cleanup `imap` and `imap_sync` entries for deleted transports.
|
||||
//
|
||||
// Transports may be deleted directly or via sync messages,
|
||||
|
||||
Reference in New Issue
Block a user