gauteh/lieer

Sync failure with non-relative path

windo opened this issue · 1 comments

windo commented

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.

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