From: David Bremner Date: Wed, 26 Dec 2012 19:36:33 +0000 (-0400) Subject: notmuch-restore: handle empty input file, leading blank lines and comments. X-Git-Tag: 0.15_rc1~31 X-Git-Url: https://git.notmuchmail.org/git?a=commitdiff_plain;ds=sidebyside;h=d705a6a45bf691b60101203bd09a459be255dceb;hp=d705a6a45bf691b60101203bd09a459be255dceb;p=notmuch notmuch-restore: handle empty input file, leading blank lines and comments. This patch corrects several undesirable behaviours: 1) Empty files were not detected, leading to buffer read overrun. 2) An initial blank line cause restore to silently abort 3) Initial comment line caused format detection to fail ---