aboutsummaryrefslogtreecommitdiffhomepage
path: root/database.cc
diff options
context:
space:
mode:
authorGravatar Carl Worth <cworth@cworth.org>2009-10-22 15:34:47 -0700
committerGravatar Carl Worth <cworth@cworth.org>2009-10-22 15:34:47 -0700
commit77f9d3ee0eac9f91e6d298e9e3774f4b161fa713 (patch)
treecacedf73fbe12f16fa3492fe9855bdb0d66ba02a /database.cc
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.
Diffstat (limited to 'database.cc')
-rw-r--r--database.cc1
1 files changed, 1 insertions, 0 deletions
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 {