]> granicus.if.org Git - neomutt/commit
notmuch: remove Context in nm_read_entire_thread() 1387/head
authorAustin Ray <austin@austinray.io>
Wed, 9 Jan 2019 22:28:08 +0000 (17:28 -0500)
committerAustin Ray <austin@austinray.io>
Wed, 9 Jan 2019 22:28:08 +0000 (17:28 -0500)
commitb352b8949af4965e7a82b343322de1f1e736b615
treeb72ef8a3bd4aaaa1689ec3fb9c8b09d9d389763e
parent2c66045b26e5871168f99a63bf059126b764fb2d
notmuch: remove Context in nm_read_entire_thread()

Removed the coupling between `nm_read_entire_thread()` and `struct
Context` by replacing it with `struct Mailbox`.

`Context` had two uses: `Mailbox` reference source and `ctx_update()`.

The introduction of mailbox notification code allows mailbox events to
trigger `ctx_update()`, which removes the hard dependency on `Context`.

Passing a `Mailbox` reference removes the remaining soft dependency on
`Context`.
index.c
notmuch/mutt_notmuch.c
notmuch/mutt_notmuch.h