]> git.notmuchmail.org Git - notmuch/commitdiff
Don't forget the "to" header when restrict parsing to certain headers
authorCarl Worth <cworth@cworth.org>
Thu, 22 Oct 2009 22:34:47 +0000 (15:34 -0700)
committerCarl Worth <cworth@cworth.org>
Thu, 22 Oct 2009 22:34:47 +0000 (15:34 -0700)
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.

database.cc

index 1c0410c2c176a24f4897a33a70f945129c617aa9..2fc783e74e689a50f286be50afe6368a4ed93720 100644 (file)
@@ -514,6 +514,7 @@ notmuch_database_add_message (notmuch_database_t *notmuch,
                                           "message-id",
                                           "references",
                                           "subject",
+                                          "to",
                                           (char *) NULL);
 
     try {