tsto / notmuchfs

A virtual maildir file system for notmuch queries
Other
89 stars 11 forks source link

how to search for something containing `/`? #10

Open ldegen opened 7 years ago

ldegen commented 7 years ago

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?

tsto commented 5 years ago

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.