[PATCH] configure: add --without-api-docs option
[notmuch-archives.git] / 2a / 4d8c01f8adb7697f44c94c1b5043f972b8011f
1 Return-Path: <Sebastian@SSpaeth.de>\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 B8FF5431FAE\r
6         for <notmuch@notmuchmail.org>; Mon,  8 Feb 2010 03:14:17 -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.272\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.272 tagged_above=-999 required=5\r
12         tests=[AWL=-0.273, BAYES_50=0.001] autolearn=ham\r
13 Received: from olra.theworths.org ([127.0.0.1])\r
14         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
15         with ESMTP id avlGwGEzl7YS for <notmuch@notmuchmail.org>;\r
16         Mon,  8 Feb 2010 03:14:17 -0800 (PST)\r
17 Received: from homiemail-a11.g.dreamhost.com (caiajhbdccac.dreamhost.com\r
18         [208.97.132.202])\r
19         by olra.theworths.org (Postfix) with ESMTP id 0B474431FBC\r
20         for <notmuch@notmuchmail.org>; Mon,  8 Feb 2010 03:14:17 -0800 (PST)\r
21 Received: from localhost.localdomain (mtec-hg-docking-1-dhcp-204.ethz.ch\r
22         [129.132.133.204])\r
23         by homiemail-a11.g.dreamhost.com (Postfix) with ESMTPA id E6C5E19406D; \r
24         Mon,  8 Feb 2010 03:14:15 -0800 (PST)\r
25 From: Sebastian Spaeth <Sebastian@SSpaeth.de>\r
26 To: notmuch@notmuchmail.org\r
27 Date: Mon,  8 Feb 2010 12:14:10 +0100\r
28 Message-Id: <1265627652-25912-2-git-send-email-Sebastian@SSpaeth.de>\r
29 X-Mailer: git-send-email 1.6.3.3\r
30 In-Reply-To: <1265627652-25912-1-git-send-email-Sebastian@SSpaeth.de>\r
31 References: <87fx5cjc83.fsf@SSpaeth.de>\r
32         <1265627652-25912-1-git-send-email-Sebastian@SSpaeth.de>\r
33 Subject: [notmuch] [PATCH 2/4] Introduce new notmuch return status\r
34         NOTMUCH_STATUS_INVALID_DATE\r
35 X-BeenThere: notmuch@notmuchmail.org\r
36 X-Mailman-Version: 2.1.13\r
37 Precedence: list\r
38 List-Id: "Use and development of the notmuch mail system."\r
39         <notmuch.notmuchmail.org>\r
40 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
41         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
42 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
43 List-Post: <mailto:notmuch@notmuchmail.org>\r
44 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
45 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
46         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
47 X-List-Received-Date: Mon, 08 Feb 2010 11:14:17 -0000\r
48 \r
49 This is not used yet in this commit but will be the return value in case the date parser gets handed invalid dates.\r
50 \r
51 Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>\r
52 ---\r
53  lib/database.cc |    2 ++\r
54  lib/notmuch.h   |    3 +++\r
55  notmuch-new.c   |    1 +\r
56  3 files changed, 6 insertions(+), 0 deletions(-)\r
57 \r
58 diff --git a/lib/database.cc b/lib/database.cc\r
59 index cce7847..ddda933 100644\r
60 --- a/lib/database.cc\r
61 +++ b/lib/database.cc\r
62 @@ -219,6 +219,8 @@ notmuch_status_to_string (notmuch_status_t status)\r
63         return "Erroneous NULL pointer";\r
64      case NOTMUCH_STATUS_TAG_TOO_LONG:\r
65         return "Tag value is too long (exceeds NOTMUCH_TAG_MAX)";\r
66 +    case NOTMUCH_STATUS_INVALID_DATE:\r
67 +       return "Date value did not parse to a valid date";\r
68      case NOTMUCH_STATUS_UNBALANCED_FREEZE_THAW:\r
69         return "Unbalanced number of calls to notmuch_message_freeze/thaw";\r
70      default:\r
71 diff --git a/lib/notmuch.h b/lib/notmuch.h\r
72 index d3e50a7..56a76d1 100644\r
73 --- a/lib/notmuch.h\r
74 +++ b/lib/notmuch.h\r
75 @@ -78,6 +78,8 @@ typedef int notmuch_bool_t;\r
76   * NOTMUCH_STATUS_TAG_TOO_LONG: A tag value is too long (exceeds\r
77   *     NOTMUCH_TAG_MAX)\r
78   *\r
79 + * NOTMUCH_STATUS_INVALID_DATE: Date parsing failed\r
80 + *\r
81   * NOTMUCH_STATUS_UNBALANCED_FREEZE_THAW: The notmuch_message_thaw\r
82   *     function has been called more times than notmuch_message_freeze.\r
83   *\r
84 @@ -96,6 +98,7 @@ typedef enum _notmuch_status {\r
85      NOTMUCH_STATUS_DUPLICATE_MESSAGE_ID,\r
86      NOTMUCH_STATUS_NULL_POINTER,\r
87      NOTMUCH_STATUS_TAG_TOO_LONG,\r
88 +    NOTMUCH_STATUS_INVALID_DATE,\r
89      NOTMUCH_STATUS_UNBALANCED_FREEZE_THAW,\r
90  \r
91      NOTMUCH_STATUS_LAST_STATUS\r
92 diff --git a/notmuch-new.c b/notmuch-new.c\r
93 index f25c71f..5da31c1 100644\r
94 --- a/notmuch-new.c\r
95 +++ b/notmuch-new.c\r
96 @@ -431,6 +431,7 @@ add_files_recursive (notmuch_database_t *notmuch,\r
97             ret = status;\r
98             goto DONE;\r
99         default:\r
100 +       case NOTMUCH_STATUS_INVALID_DATE:\r
101         case NOTMUCH_STATUS_FILE_ERROR:\r
102         case NOTMUCH_STATUS_NULL_POINTER:\r
103         case NOTMUCH_STATUS_TAG_TOO_LONG:\r
104 -- \r
105 1.6.3.3\r
106 \r