purebred-mua / hs-notmuch

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

API to retrieve top level messages #17

Closed romanofski closed 7 years ago

romanofski commented 7 years ago

After studying the notmuch API myself I'm now realising what you meant in purebred-mua/purebred#35 that notmuch has threading built in. Which makes this merge request probably not very useful.

Thinking about it we should make use of that, the NotmuchMail becomes a NotmuchItem and exposes a similar if not the same API for threads and mails (perhaps a different constructor?). A rendering class then can render different views of the item.