procmail2notmuch: add sql rule loader

This commit is contained in:
2025-04-20 08:40:06 -07:00
parent 1c4f27902e
commit 7de36bbc3d
5 changed files with 140 additions and 92 deletions

View File

@@ -0,0 +1,3 @@
DROP TABLE IF NOT EXISTS email_rule;
-- Add down migration script here

View File

@@ -0,0 +1,5 @@
CREATE TABLE IF NOT EXISTS email_rule (
id integer NOT NULL GENERATED ALWAYS AS IDENTITY,
sort_order integer NOT NULL,
rule jsonb NOT NULL
);