From 64092a27ba83da09dc8da50f0cbaf9bc623d5891 Mon Sep 17 00:00:00 2001 From: Mroik Date: Sat, 9 May 2026 03:23:52 +0200 Subject: Add queue for mail processing Add DB table for queue. It is necessary in case the delivery fails and we'll need to retry. Signed-off-by: Mroik --- src/database.rs | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/database.rs') diff --git a/src/database.rs b/src/database.rs index 16ed137..14d9130 100644 --- a/src/database.rs +++ b/src/database.rs @@ -57,6 +57,13 @@ impl Database { UNIQUE (user_id, list_id))"; tx.execute(q, ())?; + q = "CREATE TABLE queue ( + id INTEGER PRIMARY KEY AUTOINCREMENT, + from_ TEXT NOT NULL, + recipient TEXT NOT NULL, + data BLOB NOT NULL)"; + tx.execute(q, ())?; + tx.commit()?; Ok(()) } -- cgit v1.3