From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 701BB429E3E for ; Fri, 6 Jan 2012 03:10:04 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: 0.363 X-Spam-Level: X-Spam-Status: No, score=0.363 tagged_above=-999 required=5 tests=[RDNS_DYNAMIC=0.363] 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 xQ5bes+e3lHZ for ; Fri, 6 Jan 2012 03:10:03 -0800 (PST) Received: from mail.antono.info (ec2-50-19-243-116.compute-1.amazonaws.com [50.19.243.116]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id DB4BC429E33 for ; Fri, 6 Jan 2012 03:10:03 -0800 (PST) Received: by mail.antono.info (Postfix, from userid 1003) id BDC16614EF; Fri, 6 Jan 2012 11:10:13 +0000 (UTC) Received: from [192.168.1.5] (unknown [178.121.158.196]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: antono) by mail.antono.info (Postfix) with ESMTPSA id 1004D60461; Fri, 6 Jan 2012 11:10:11 +0000 (UTC) Message-ID: <1325848197.17646.3.camel@libero> Subject: Re: [PATCH] Perform mail polling asynchronously From: Antono Vasiljev To: David Edmondson Date: Fri, 06 Jan 2012 14:09:57 +0300 In-Reply-To: References: <1315196076-9254-1-git-send-email-self@antono.info> Organization: Red Brigade Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.2- Content-Transfer-Encoding: 7bit Mime-Version: 1.0 Cc: notmuch@notmuchmail.org X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list Reply-To: self@antono.info List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Jan 2012 11:10:04 -0000 On Tue, 2012-01-03 at 16:02 +0000, David Edmondson wrote: > On Mon, 5 Sep 2011 07:14:36 +0300, Antono Vasiljev wrote: > > * reimplemented notmuch-poll(&optional callback) so that it > > calls process asynchronously and run callback after process > > finished > > * changed usage of notmuch-poll in notmuch-hello-poll-and-update > > and notmuch-search-poll-and-refresh-view > > I don't understand the real purpose of this patch. > If the poll script runs asynchronously, won't the notmuch-search output > refresh and jump into my face when I'm busy doing something else? And, > if I'm not busy doing something else, why can't I just wait for the poll > script to complete? Sync io sucks. Just drop it if you do not like. I don't use notmuch anymore so i dont care.