]> rtime.felk.cvut.cz Git - notmuch.git/commit
restore: Make missing messages non-fatal (again)
authorAustin Clements <amdragon@MIT.EDU>
Sun, 6 Jan 2013 20:22:37 +0000 (15:22 -0500)
committerDavid Bremner <bremner@debian.org>
Mon, 7 Jan 2013 02:39:23 +0000 (22:39 -0400)
commitbaca1219af0ef1f81985759e868a68e9dd78e0d1
tree1aa014462904315077f9eae9825ae8961b419340
parentd705a6a45bf691b60101203bd09a459be255dceb
restore: Make missing messages non-fatal (again)

Previously, restore would abort if a message ID in the dump was
missing.  Furthermore, it would only report this as a warning.  This
patch makes it distinguish abort-worthy lookup failures like
out-of-memory from non-fatal failure to find a message ID.  The former
is reported as an error and causes restore to abort, while the latter
is reported as a warning and does not cause an abort.

This restores 0.14's non-fatal handling of missing message IDs in
restore (though 0.14 also considered serious errors non-fatal; we
retain the new and better handling of serious errors).
notmuch-restore.c