Show first message of the thread

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Use much clearer sort constant

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Fix database handling

We should track the databases per buffer. Otherwise we don't know if a
previous buffer has finished using their queries or not.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Add option to save the patches of a patch series

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Allow calling with arguments

For example:

  :NotMuch date:today

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Split $email_address

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Generate custom message-id

Using Mail as a reference.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Don't execute search if it's cancelled

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Trivial cleanup

Using $email_address is more straight forward.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Refactor open_reply()

In preparation for composing new messages.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Add option to compose new messages

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>