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 12D394196F3 for ; Sat, 27 Mar 2010 18:53:13 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.5 X-Spam-Level: X-Spam-Status: No, score=-0.5 tagged_above=-999 required=5 tests=[BAYES_05=-0.5] autolearn=ham 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 WhbKqW0ewpxs for ; Sat, 27 Mar 2010 18:53:12 -0700 (PDT) Received: from homiemail-a21.g.dreamhost.com (caiajhbdcaib.dreamhost.com [208.97.132.81]) by olra.theworths.org (Postfix) with ESMTP id 06F124196F2 for ; Sat, 27 Mar 2010 18:53:12 -0700 (PDT) Received: from sspaeth.de (unknown [195.190.188.219]) by homiemail-a21.g.dreamhost.com (Postfix) with ESMTPA id D1CC0300059; Sat, 27 Mar 2010 18:53:09 -0700 (PDT) Received: by sspaeth.de (sSMTP sendmail emulation); Sun, 28 Mar 2010 03:53:07 +0200 From: "Sebastian Spaeth" To: Michal Sojka , notmuch@notmuchmail.org In-Reply-To: <878w9dqqub.fsf@SSpaeth.de> References: <1269638293-23520-1-git-send-email-sojkam1@fel.cvut.cz> <878w9dqqub.fsf@SSpaeth.de> Date: Sun, 28 Mar 2010 03:53:07 +0200 Message-ID: <878w9d2ovw.fsf@SSpaeth.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: [notmuch] [PATCH] Prevent data loss caused by SIGINT during notmuch new 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: Sun, 28 Mar 2010 01:53:13 -0000 On Sun, 28 Mar 2010 00:37:00 +0100, "Sebastian Spaeth" wrote: > On Fri, 26 Mar 2010 22:18:13 +0100, Michal Sojka wrote: > > When Ctrl-C is pressed in a wrong time during notmuch new, it can lead > > to removal of messages from the database even if the files were not > > removed. CC -O2 notmuch-new.o notmuch-new.c: In function 'add_files_recursive': notmuch-new.c:519: error: 'add_files_state_t' has no member named 'interrupted' make: *** [notmuch-new.o] Error 1 I have not checked the code yet, but simply applying this patch make the compile fail. Sebastian