notmuchfs
notmuchfs copied to clipboard
how to search for something containing `/`?
Hi again,
As far as I understand, filenames cannot contain a forward slash. But how would I search for something like 'folder:posteo/INBOX'?
Example:
$ LC_ALL=C mkdir 'tag:inbox AND folder:posteo/INBOX'
mkdir: cannot create directory 'tag:inbox AND folder:posteo/INBOX': No such file or directory
Is there some other way to encode this?
No there is not, slashes being illegal in directory names. Notmuchfs would have to grow the ability to replace that with some special character sequence, which would be brittle.
Instead, I suggest you add a specific tag to keep in sync with the 'folder' search term, then tell notmuchfs to search for that tag.