notmuchfs icon indicating copy to clipboard operation
notmuchfs copied to clipboard

how to search for something containing `/`?

Open ldegen opened this issue 8 years ago • 1 comments

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?

ldegen avatar Sep 03 '17 09:09 ldegen

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.

tsto avatar Jun 19 '19 03:06 tsto