]> git.notmuchmail.org Git - notmuch/commit
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)
commitcfa228a3d4b300df3551e811028508d3de5cd81c
tree4810965636edcd1af440f62d59630c73cdf737ad
parent81861514c9a86350d24322c1de80b284bd2c1033
notmuch_database_add_message: Sanity check the file as the first thing

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.
database.cc