From fbe7dade54349f369e242a57f74bc180f361734b Mon Sep 17 00:00:00 2001 From: Bill Thiede Date: Sun, 19 Mar 2023 20:09:26 -0700 Subject: [PATCH] Quote notmuch rules to account for spaces. --- procmail2notmuch/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/procmail2notmuch/src/main.rs b/procmail2notmuch/src/main.rs index a6759b7..fd178e8 100644 --- a/procmail2notmuch/src/main.rs +++ b/procmail2notmuch/src/main.rs @@ -158,7 +158,7 @@ fn notmuch_from_rules(mut w: W, rules: &[Rule]) -> anyhow::Result<()> lines.push(format!( // TODO(wathiede): this assumes `notmuch new` is configured to add // `tag:unprocessed` to all new mail. - "-unprocessed +{} -- tag:unprocessed {}{}", + r#"-unprocessed +{} -- tag:unprocessed {}"{}""#, t, match m.match_type { MatchType::From => "from:",