Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to search for something containing /? #10

Open
ldegen opened this issue Sep 3, 2017 · 1 comment
Open

how to search for something containing /? #10

ldegen opened this issue Sep 3, 2017 · 1 comment

Comments

@ldegen
Copy link

ldegen commented Sep 3, 2017

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
Copy link
Owner

tsto commented Jun 19, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants