purebred-mua / hs-notmuch

Modern Haskell binding to the Notmuch mail indexer
11 stars 2 forks source link

Expose query_set_sort #15

Open romanofski opened 7 years ago

romanofski commented 7 years ago

Currently there is no way to have a stable query result (I'm hypothesizing). The binding already provides query_set_sort, but it isn't exposed in hs-notmuch.

frasertweedale commented 7 years ago

On Fri, Sep 08, 2017 at 11:28:36AM +0000, Roman Joost wrote:

Currently there is no way to have a stable query result (I'm hypothesizing). The binding already provides query_set_sort, but it isn't exposed in hs-notmuch.

Interesting theory. Checking the libnotmuch source, though, I see that sort is set to NOTMUCH_SORT_NEWEST_FIRST by default (i.e. in notmuch_query_create).

Are you certain that you're getting messages in different order?

romanofski commented 7 years ago

No I'm not certain. Will need to confirm.

romanofski commented 7 years ago

This has turned out to be a non-issue, although exposing this function would be a nice to have to implement sorting :)