summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2009-10-22 15:34:47 -0700
committerCarl Worth <cworth@cworth.org>2009-10-22 15:34:47 -0700
commit77f9d3ee0eac9f91e6d298e9e3774f4b161fa713 (patch)
treecacedf73fbe12f16fa3492fe9855bdb0d66ba02a
parent90f93fc9c7c6f0b86259c259ee9ba0eb08206b27 (diff)
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.
-rw-r--r--database.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/database.cc b/database.cc
index 1c0410c..2fc783e 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 {