Giter VIP home page Giter VIP logo

Comments (8)

xuchunyang avatar xuchunyang commented on May 27, 2024

Unfortunately, I stopped using Notmuch long time ago and I am afraid I won't investigate the issue anytime soon. But meanwhile helm-notmuch is a very simple package - it uses the notmuch command line tool to collect search results and display them using helm, so if the issue is caused by helm-notmuch, it should not be very hard to figure out.

from helm-notmuch.

dinojr avatar dinojr commented on May 27, 2024

I'll give it a try then.

from helm-notmuch.

Ambrevar avatar Ambrevar commented on May 27, 2024

@xuchunyang: Out of curiosity, what are you using now and why did you stop using Notmuch?

from helm-notmuch.

xuchunyang avatar xuchunyang commented on May 27, 2024

@Ambrevar I'm not a heavy user of email, e.g., I sent only one email since this month.

from helm-notmuch.

Ambrevar avatar Ambrevar commented on May 27, 2024

I think I've got and answer to this:

(defun helm-notmuch-candidate-formatter (cand)
  "Format the single entry CAND."
+  (if (not (string-match-p "\\[" cand ))
+      ""
  ...

Basically when querying something that Xapian does not understand, notmuch returns an error. Example

> notmuch search "date:foo"
notmuch search: A Xapian exception occurred
A Xapian exception occurred parsing query: Didn't understand date specification 'foo'
Query string was: date:foo

In helm-notmuch-collect-candidates, instead of start-process we could use something like this:

(make-process :name "helm-notmuch"
              :buffer helm-buffer
              :command cmds
              :connection-type 'pipe
              :stderr helm-notmuch-log-buffer)

from helm-notmuch.

Ambrevar avatar Ambrevar commented on May 27, 2024

Note that the first suggestion is the real fix, the second is only an improvement in terms of error reporting.

@xuchunyang: Would you take a PR?

from helm-notmuch.

xuchunyang avatar xuchunyang commented on May 27, 2024

@Ambrevar Yes, I'll accept such PR as long as it improves the situation.

from helm-notmuch.

Ambrevar avatar Ambrevar commented on May 27, 2024

Fixed with dae426c.

from helm-notmuch.

Related Issues (5)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.