Run mutt in default term

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Revert "refresh search results after adding a tag"

This reverts commit 50b6109e0b50e29b35dd27d812ca41d8ed802b46.

This operation might take a while, and even if it only takes fractions
of a second, that's not what the user might want.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Rename to NotMuch()

This script has replaced the official NotMuch().

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

They are better encoded than Ruby's Mail.

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

There's at least one instance were we cannot use do_read(), because the
end might happen after the method call (after the user has finished
scrolling all the results).

So let's just keep a database object available at all times, and reopen
it every time a query is going to be made.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Keep track of all the queries

Ideally notmuch should do this, but there's a bug.

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