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

Sync failure with non-relative path #208

Open
windo opened this issue Jan 20, 2022 · 1 comment
Open

Sync failure with non-relative path #208

windo opened this issue Jan 20, 2022 · 1 comment
Labels

Comments

@windo
Copy link

windo commented Jan 20, 2022

qry = "path:%s/** and lastmod:%d..%d" % (self.local.nm_relative, self.local.state.lastmod, rev)

This fails when the relative path is non-existent (as it is in my configuration):

$ gmi sync
Traceback (most recent call last):
  File "/usr/bin/gmi", line 24, in <module>
    g.main ()
  File "/usr/share/lieer/lieer/gmailieer.py", line 219, in main
    args.func (args)
  File "/usr/share/lieer/lieer/gmailieer.py", line 299, in sync
    self.push (args, True)
  File "/usr/share/lieer/lieer/gmailieer.py", line 327, in push
    messages = list(query.search_messages ())
  File "/usr/lib/python3/dist-packages/notmuch/query.py", line 182, in search_messages
    raise NotmuchError(status)
notmuch.errors.XapianError

It's trying to search for: path:/** and lastmod:1281363..1281366.

@gauteh gauteh added the bug label Feb 8, 2022
@gauteh
Copy link
Owner

gauteh commented Feb 8, 2022

So if you use notmuch root as lieer repo the whole path:/** and part of the query should be dropped?

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

No branches or pull requests

2 participants