]> git.notmuchmail.org Git - notmuch/commit
show: workaround for the missing file problem
authorYuri Volchkov <yuri.volchkov@gmail.com>
Mon, 21 Aug 2017 15:44:48 +0000 (17:44 +0200)
committerDavid Bremner <david@tethera.net>
Tue, 22 Aug 2017 21:48:29 +0000 (18:48 -0300)
commit09fa51303c6ba5adfd2431d87663523aa799288b
treeb1f1a0db1303397cd3752c6bbe0be04d7c4745e0
parent39cc84e9fc84065835bce0b0ebd92f4c7adbb23a
show: workaround for the missing file problem

This patch fixes the 'Deleted first duplicate file does not stop
notmuch show from working' test.

If a message to be shown has several duplicated files, and for some
reason the first file in the list is not available anymore, notmuch
will exit with an error.

This is clearly a problem in the database, but we are not going to let
this problem be a show-stopper. Let's walk through the list, and show
the first existing file.

Signed-off-by: Yuri Volchkov <yuri.volchkov@gmail.com>
mime-node.c
test/T670-duplicate-mid.sh