I'm trying to write fancy split that puts any message with "[foobar]" in the subject into a specific folder but nothing seems to work.
(setq nnimap-split-fancy '(|("subject" "\\[foobar\\]" "INBOX.foobar") (...)) "default")
but it still ends up in the "default" mailbox.
If I change the regexp to just "foobar" it works (but then it matches other messages I don't want included). I think it's something to do with the escaping of the brackets. I've tried a couple of different of variations of escaping but there's something I'm missing. Or maybe I'm not fancy enough.