Quote notmuch rules to account for spaces.

This commit is contained in:
Bill Thiede 2023-03-19 20:09:26 -07:00
parent 321eca38e2
commit fbe7dade54

View File

@ -158,7 +158,7 @@ fn notmuch_from_rules<W: Write>(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:",