Re: [PATCH 9/9] add has: query prefix to search for specific properties
[notmuch-archives.git] / 5f / 045f8f6f86a2b692cba6eddf5596529b031913
1 Return-Path: <amthrax@drake.mit.edu>\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 2D8C7429E3D\r
6         for <notmuch@notmuchmail.org>; Thu, 17 Feb 2011 23:59:32 -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\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]\r
12         autolearn=disabled\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 t9dl3qpuOxaS for <notmuch@notmuchmail.org>;\r
16         Thu, 17 Feb 2011 23:59:30 -0800 (PST)\r
17 Received: from dmz-mailsec-scanner-2.mit.edu (DMZ-MAILSEC-SCANNER-2.MIT.EDU\r
18         [18.9.25.13])\r
19         by olra.theworths.org (Postfix) with ESMTP id D66A7429E2A\r
20         for <notmuch@notmuchmail.org>; Thu, 17 Feb 2011 23:59:23 -0800 (PST)\r
21 X-AuditID: 1209190d-b7cacae000000a14-d2-4d5e26db6146\r
22 Received: from mailhub-auth-4.mit.edu ( [18.7.62.39])\r
23         by dmz-mailsec-scanner-2.mit.edu (Symantec Brightmail Gateway) with\r
24         SMTP id 73.55.02580.BD62E5D4; Fri, 18 Feb 2011 02:59:23 -0500 (EST)\r
25 Received: from outgoing.mit.edu (OUTGOING-AUTH.MIT.EDU [18.7.22.103])\r
26         by mailhub-auth-4.mit.edu (8.13.8/8.9.2) with ESMTP id p1I7xNrE009333; \r
27         Fri, 18 Feb 2011 02:59:23 -0500\r
28 Received: from drake.mit.edu\r
29         (209-6-116-242.c3-0.arl-ubr1.sbo-arl.ma.cable.rcn.com\r
30         [209.6.116.242]) (authenticated bits=0)\r
31         (User authenticated as amdragon@ATHENA.MIT.EDU)\r
32         by outgoing.mit.edu (8.13.6/8.12.4) with ESMTP id p1I7xM9F001528\r
33         (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT);\r
34         Fri, 18 Feb 2011 02:59:22 -0500 (EST)\r
35 Received: from amthrax by drake.mit.edu with local (Exim 4.72)\r
36         (envelope-from <amthrax@drake.mit.edu>)\r
37         id 1PqLFK-0008L8-1E; Fri, 18 Feb 2011 02:59:22 -0500\r
38 From: Austin Clements <amdragon@MIT.EDU>\r
39 To: notmuch@notmuchmail.org\r
40 Subject: [PATCH 02/10] new: Don't loose messages on SIGINT.\r
41 Date: Fri, 18 Feb 2011 02:58:52 -0500\r
42 Message-Id: <1298015940-31986-3-git-send-email-amdragon@mit.edu>\r
43 X-Mailer: git-send-email 1.7.2.3\r
44 In-Reply-To: <1298015940-31986-1-git-send-email-amdragon@mit.edu>\r
45 References: <1298015940-31986-1-git-send-email-amdragon@mit.edu>\r
46 X-Brightmail-Tracker: AAAAAA==\r
47 Cc: amdragon@mit.edu\r
48 X-BeenThere: notmuch@notmuchmail.org\r
49 X-Mailman-Version: 2.1.13\r
50 Precedence: list\r
51 List-Id: "Use and development of the notmuch mail system."\r
52         <notmuch.notmuchmail.org>\r
53 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
54         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
55 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
56 List-Post: <mailto:notmuch@notmuchmail.org>\r
57 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
58 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
59         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
60 X-List-Received-Date: Fri, 18 Feb 2011 07:59:32 -0000\r
61 \r
62 Previously, message removals were always performed, even after a\r
63 SIGINT.  As a result, when a message was moved from one folder to\r
64 another, a SIGINT between processing the directory the message was\r
65 removed from and processing the directory it was added to would result\r
66 in notmuch removing that message from the database.\r
67 ---\r
68  notmuch-new.c |    4 ++--\r
69  1 files changed, 2 insertions(+), 2 deletions(-)\r
70 \r
71 diff --git a/notmuch-new.c b/notmuch-new.c\r
72 index 941f9d6..a910e5f 100644\r
73 --- a/notmuch-new.c\r
74 +++ b/notmuch-new.c\r
75 @@ -837,7 +837,7 @@ notmuch_new_command (void *ctx, int argc, char *argv[])\r
76      removed_files = 0;\r
77      renamed_files = 0;\r
78      gettimeofday (&tv_start, NULL);\r
79 -    for (f = add_files_state.removed_files->head; f; f = f->next) {\r
80 +    for (f = add_files_state.removed_files->head; f && !interrupted; f = f->next) {\r
81         status = notmuch_database_remove_message (notmuch, f->filename);\r
82         if (status == NOTMUCH_STATUS_DUPLICATE_MESSAGE_ID)\r
83             renamed_files++;\r
84 @@ -852,7 +852,7 @@ notmuch_new_command (void *ctx, int argc, char *argv[])\r
85      }\r
86  \r
87      gettimeofday (&tv_start, NULL);\r
88 -    for (f = add_files_state.removed_directories->head, i = 0; f; f = f->next, i++) {\r
89 +    for (f = add_files_state.removed_directories->head, i = 0; f && !interrupted; f = f->next, i++) {\r
90         _remove_directory (ctx, notmuch, f->filename,\r
91                            &renamed_files, &removed_files);\r
92         if (do_print_progress) {\r
93 -- \r
94 1.7.2.3\r
95 \r