From: Carl Worth Date: Thu, 22 Oct 2009 22:34:47 +0000 (-0700) Subject: Don't forget the "to" header when restrict parsing to certain headers X-Git-Tag: 0.1~772 X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=commitdiff_plain;h=77f9d3ee0eac9f91e6d298e9e3774f4b161fa713;ds=sidebyside Don't forget the "to" header when restrict parsing to certain headers We recently started discarding files as "not email" if they have none of Subject, From, nor To. Apaprently, my mail collection contains a number of messages that I sent, that are saved without Subject and From, (perhaps these were drafts?). Anyway, it's fortunate I had those since they alerted me to this bug, where we were not parsing the "To" header in some cases. --- diff --git a/database.cc b/database.cc index 1c0410c2..2fc783e7 100644 --- a/database.cc +++ b/database.cc @@ -514,6 +514,7 @@ notmuch_database_add_message (notmuch_database_t *notmuch, "message-id", "references", "subject", + "to", (char *) NULL); try {