gmail-britta icon indicating copy to clipboard operation
gmail-britta copied to clipboard

`archive_unless_directed` doesn't work properly with `otherwise`

Open doy-stripe opened this issue 5 years ago • 0 comments

filter {
  has ["foo", "bar"]
  label "a"
}.otherwise {
  has ["foo"]
  label "b"
}.archive_unless_directed

produces a query like foo -{(to:me bar)} (for the archive_unless_directed filter), but i would expect it to produce something like foo -{(to:me OR bar)} since i want to skip archiving if it's either addressed to me or if bar matches. or is there a better way to accomplish what i'm doing?

doy-stripe avatar Jan 03 '20 18:01 doy-stripe