]> git.notmuchmail.org Git - notmuch/commit - lib/add-message.cc
lib/n_d_add_message: refactor test for new/ghost messages
authorDavid Bremner <david@tethera.net>
Sun, 4 Jun 2017 12:32:25 +0000 (09:32 -0300)
committerDavid Bremner <david@tethera.net>
Wed, 2 Aug 2017 01:17:47 +0000 (21:17 -0400)
commit95b52e85b2deae449b71794b0d74e6c677516e12
treed8474807d4a41878c121019b14c09c1d9fa69870
parent4034a7cec75b785c9f935186a4daad7c325df56c
lib/n_d_add_message: refactor test for new/ghost messages

The switch is easier to understand than the side effects in the if
test. It also potentially allows us more flexibility in breaking up
this function into smaller pieces, since passing private_status around
is icky.
lib/add-message.cc