Re: [PATCH] Perform mail polling asynchronously
authorAntono Vasiljev <self@antono.info>
Fri, 6 Jan 2012 11:09:57 +0000 (14:09 +0300)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:41:40 +0000 (09:41 -0800)
7f/d8b9379122aa6e201409c18b016a793fa0d7b9 [new file with mode: 0644]

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