From 5b8b0377cb68904eac8fc58a933d47f605a81725 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Mon, 26 Apr 2010 12:58:34 -0700 Subject: 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 --- lib/notmuch-private.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/notmuch-private.h') 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. -- cgit v1.2.3