aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/notmuch-private.h
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <hohndel@infradead.org>2010-04-26 12:58:34 -0700
committerGravatar Carl Worth <cworth@cworth.org>2010-04-26 14:44:06 -0700
commit5b8b0377cb68904eac8fc58a933d47f605a81725 (patch)
treeb431829755244f59ab287f5b6e29e53289638850 /lib/notmuch-private.h
parent4b34effca5a7dcde66737ab62f64d9d76213209a (diff)
Make Received: header special in notmuch_message_file_get_header
With this patch the Received: header becomes special in the way we treat headers - this is the only header for which we concatenate all the instances we find (instead of just returning the first one). This will be used in the From guessing code for replies as we need to be able to walk ALL of the Received: headers in a message to have a good chance to guess which mailbox this email was delivered to. Signed-off-by: Dirk Hohndel <hohndel@infradead.org>
Diffstat (limited to 'lib/notmuch-private.h')
-rw-r--r--lib/notmuch-private.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/notmuch-private.h b/lib/notmuch-private.h
index 6e83cc37..3768d6f8 100644
--- a/lib/notmuch-private.h
+++ b/lib/notmuch-private.h
@@ -344,6 +344,9 @@ notmuch_message_file_restrict_headersv (notmuch_message_file_t *message,
*
* The header name is case insensitive.
*
+ * The Received: header is special - for it all Received: headers in
+ * the message are concatenated
+ *
* The returned value is owned by the notmuch message and is valid
* only until the message is closed. The caller should copy it if
* needing to modify the value or to hold onto it for longer.