Re: [PATCH v4 08/16] reorganize indexing of multipart/signed and multipart/encrypted
[notmuch-archives.git] / 89 / cd29b3ea7a110953e31efa5cb5a4323b6f3cd8
1 Return-Path: <schnouki@schnouki.net>\r
2 X-Original-To: notmuch@notmuchmail.org\r
3 Delivered-To: notmuch@notmuchmail.org\r
4 Received: from localhost (localhost [127.0.0.1])\r
5         by olra.theworths.org (Postfix) with ESMTP id D7094429E31\r
6         for <notmuch@notmuchmail.org>; Tue, 13 Dec 2011 09:12:09 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -0.1\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.1 tagged_above=-999 required=5\r
12         tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1]\r
13         autolearn=disabled\r
14 Received: from olra.theworths.org ([127.0.0.1])\r
15         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
16         with ESMTP id IEV8Ldg5Puil for <notmuch@notmuchmail.org>;\r
17         Tue, 13 Dec 2011 09:12:09 -0800 (PST)\r
18 Received: from ks3536.kimsufi.com (schnouki.net [87.98.217.222])\r
19         by olra.theworths.org (Postfix) with ESMTP id EC974429E28\r
20         for <notmuch@notmuchmail.org>; Tue, 13 Dec 2011 09:12:08 -0800 (PST)\r
21 Received: from thor.loria.fr (thor.loria.fr [152.81.12.250])\r
22         by ks3536.kimsufi.com (Postfix) with ESMTPSA id F07E66A0028;\r
23         Tue, 13 Dec 2011 18:12:07 +0100 (CET)\r
24 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=schnouki.net;\r
25         s=key-schnouki; t=1323796328;\r
26         bh=NzgZ3E1y+kniFPgYblonor4LFYpfYV4JBR+CuF0zNm4=;\r
27         h=From:To:Subject:Date:Message-Id:In-Reply-To:References;\r
28         b=kbCfQFQzhdVnO8ScQvx8/bWypVhFiUlSEPz355hBAIxOiQEo3d+p4Doyb/Ba91RJX\r
29         XfuFP44bOxmw81rL0LYHiHX0muZ4co3wVIi4lyo8A6sUKAn9OAuw+bidRy4jiysOXj\r
30         JN48YC7RBON1IbaaUL/lsDInE44axO9oEYmL/d1k=\r
31 From: Thomas Jost <schnouki@schnouki.net>\r
32 To: notmuch@notmuchmail.org\r
33 Subject: [PATCH 1/5] Fix comments about what is stored in the database\r
34 Date: Tue, 13 Dec 2011 18:11:41 +0100\r
35 Message-Id: <1323796305-28789-2-git-send-email-schnouki@schnouki.net>\r
36 X-Mailer: git-send-email 1.7.8\r
37 In-Reply-To: <1323796305-28789-1-git-send-email-schnouki@schnouki.net>\r
38 References: <1323796305-28789-1-git-send-email-schnouki@schnouki.net>\r
39 X-BeenThere: notmuch@notmuchmail.org\r
40 X-Mailman-Version: 2.1.13\r
41 Precedence: list\r
42 List-Id: "Use and development of the notmuch mail system."\r
43         <notmuch.notmuchmail.org>\r
44 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
45         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
46 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
47 List-Post: <mailto:notmuch@notmuchmail.org>\r
48 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
49 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
50         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
51 X-List-Received-Date: Tue, 13 Dec 2011 17:12:10 -0000\r
52 \r
53 Commit 567bcbc2 introduced two new values for each message (content of the\r
54 "From" and "Subject" headers), but the comments about the database schema had\r
55 not been updated accordingly.\r
56 ---\r
57  lib/database.cc |    6 +++++-\r
58  1 files changed, 5 insertions(+), 1 deletions(-)\r
59 \r
60 diff --git a/lib/database.cc b/lib/database.cc\r
61 index 98f101e..2025189 100644\r
62 --- a/lib/database.cc\r
63 +++ b/lib/database.cc\r
64 @@ -81,13 +81,17 @@ typedef struct {\r
65   *                     STRING is the name of a file within that\r
66   *                     directory for this mail message.\r
67   *\r
68 - *    A mail document also has two values:\r
69 + *    A mail document also has four values:\r
70   *\r
71   *     TIMESTAMP:      The time_t value corresponding to the message's\r
72   *                     Date header.\r
73   *\r
74   *     MESSAGE_ID:     The unique ID of the mail mess (see "id" above)\r
75   *\r
76 + *     FROM:           The value of the "From" header\r
77 + *\r
78 + *     SUBJECT:        The value of the "Subject" header\r
79 + *\r
80   * In addition, terms from the content of the message are added with\r
81   * "from", "to", "attachment", and "subject" prefixes for use by the\r
82   * user in searching. Similarly, terms from the path of the mail\r
83 -- \r
84 1.7.8\r
85 \r