Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id D7094429E31 for ; Tue, 13 Dec 2011 09:12:09 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.1 X-Spam-Level: X-Spam-Status: No, score=-0.1 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id IEV8Ldg5Puil for ; Tue, 13 Dec 2011 09:12:09 -0800 (PST) Received: from ks3536.kimsufi.com (schnouki.net [87.98.217.222]) by olra.theworths.org (Postfix) with ESMTP id EC974429E28 for ; Tue, 13 Dec 2011 09:12:08 -0800 (PST) Received: from thor.loria.fr (thor.loria.fr [152.81.12.250]) by ks3536.kimsufi.com (Postfix) with ESMTPSA id F07E66A0028; Tue, 13 Dec 2011 18:12:07 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=schnouki.net; s=key-schnouki; t=1323796328; bh=NzgZ3E1y+kniFPgYblonor4LFYpfYV4JBR+CuF0zNm4=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References; b=kbCfQFQzhdVnO8ScQvx8/bWypVhFiUlSEPz355hBAIxOiQEo3d+p4Doyb/Ba91RJX XfuFP44bOxmw81rL0LYHiHX0muZ4co3wVIi4lyo8A6sUKAn9OAuw+bidRy4jiysOXj JN48YC7RBON1IbaaUL/lsDInE44axO9oEYmL/d1k= From: Thomas Jost To: notmuch@notmuchmail.org Subject: [PATCH 1/5] Fix comments about what is stored in the database Date: Tue, 13 Dec 2011 18:11:41 +0100 Message-Id: <1323796305-28789-2-git-send-email-schnouki@schnouki.net> X-Mailer: git-send-email 1.7.8 In-Reply-To: <1323796305-28789-1-git-send-email-schnouki@schnouki.net> References: <1323796305-28789-1-git-send-email-schnouki@schnouki.net> X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Dec 2011 17:12:10 -0000 Commit 567bcbc2 introduced two new values for each message (content of the "From" and "Subject" headers), but the comments about the database schema had not been updated accordingly. --- lib/database.cc | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/lib/database.cc b/lib/database.cc index 98f101e..2025189 100644 --- a/lib/database.cc +++ b/lib/database.cc @@ -81,13 +81,17 @@ typedef struct { * STRING is the name of a file within that * directory for this mail message. * - * A mail document also has two values: + * A mail document also has four values: * * TIMESTAMP: The time_t value corresponding to the message's * Date header. * * MESSAGE_ID: The unique ID of the mail mess (see "id" above) * + * FROM: The value of the "From" header + * + * SUBJECT: The value of the "Subject" header + * * In addition, terms from the content of the message are added with * "from", "to", "attachment", and "subject" prefixes for use by the * user in searching. Similarly, terms from the path of the mail -- 1.7.8