]> git.notmuchmail.org Git - notmuch/commitdiff
notmuch_database_add_message: Sanity check the file as the first thing
authorCarl Worth <cworth@cworth.org>
Wed, 28 Oct 2009 20:35:10 +0000 (13:35 -0700)
committerCarl Worth <cworth@cworth.org>
Wed, 28 Oct 2009 20:35:10 +0000 (13:35 -0700)
This avoids us wasting a bunch of time doing an expensive SHA-1 over a large
file only to discover later that it doesn't even *look* like an email message.


No differences found