procmail2notmuch: don't run migration code, leave it to server

This commit is contained in:
Bill Thiede 2025-04-20 09:46:27 -07:00
parent f84b8fa6c2
commit 0225dbde3a

View File

@ -309,7 +309,6 @@ fn notmuch_from_rules<W: Write>(mut w: W, rules: &[Rule]) -> anyhow::Result<()>
async fn load_sql(dsn: &str, rules: &[Rule]) -> anyhow::Result<()> {
let pool = PgPool::connect(dsn).await?;
sqlx::migrate!("../server/migrations").run(&pool).await?;
println!("clearing email_rule table");
sqlx::query!("DELETE FROM email_rule")
.execute(&pool)