From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,RCVD_IN_DNSWL_LOW autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 9018 invoked from network); 25 Sep 2020 09:31:56 -0000 Received: from lists1.math.uh.edu (129.7.128.208) by inbox.vuxu.org with ESMTPUTF8; 25 Sep 2020 09:31:56 -0000 Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.94) (envelope-from ) id 1kLk4q-00GIE3-SN; Fri, 25 Sep 2020 04:31:40 -0500 Received: from mx1.math.uh.edu ([129.7.128.32]) by lists1.math.uh.edu with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94) (envelope-from ) id 1kLk4m-00GIC4-Lp for ding@lists.math.uh.edu; Fri, 25 Sep 2020 04:31:36 -0500 Received: from quimby.gnus.org ([95.216.78.240]) by mx1.math.uh.edu with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94) (envelope-from ) id 1kLk4k-002Q7J-PK for ding@lists.math.uh.edu; Fri, 25 Sep 2020 04:31:36 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:Mime-Version:References :Message-ID:Date:Subject:From:To:Sender:Reply-To:Cc:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=cWZ8RsUOnImjm6KnYjWbFhijS7u7BxWg3yHCw5NXGMI=; b=hiJ0xlBG8dfL0uNh6Q0P71XZD1 QHbVVXwzY6s1TlXVypdXSsbhDufXK52hKPe+HrjqC/IdcGtCP/n7KbaJeh8MDycOlMgFiWW5BHwAr JLAs8zrSy6gts49R3uDvNNbC3rZsAb3tW+Z/0f5tj4KCRtawWm1lLyj3Pvt3kkll3GO0=; Received: from static.214.254.202.116.clients.your-server.de ([116.202.254.214] helo=ciao.gmane.io) by quimby with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kLk4d-0000aA-Bn for ding@gnus.org; Fri, 25 Sep 2020 11:31:30 +0200 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1kLk4b-0005kr-RC for ding@gnus.org; Fri, 25 Sep 2020 11:31:25 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: ding@gnus.org From: =?utf-8?Q?Adam_Sj=C3=B8gren?= Subject: Re: Does Gnus automatically run 'notmuch new' if configured? Date: Fri, 25 Sep 2020 11:31:21 +0200 Organization: koldfront - analysis & revolution, Copenhagen, Denmark Message-ID: <87o8lukxsm.fsf@tullinup.koldfront.dk> References: <875z83njo0.fsf@tullinup.koldfront.dk> <87o8luz39v.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cancel-Lock: sha1:IdI3TkeHOEAvEJZ+apHn7Qwm0gM= OpenPGP: id=476630590A231909B0A0961A49D0746121BDE416; url=https://asjo.koldfront.dk/gpg.asc Mail-Follow-Up-To: never X-Face: )qY&CseJ?.:=8F#^~GcSA?F=9eu'{KAFfL1C3/A&:nE?PW\i65"ba0NS)97,Q(^@xk}n4Ou rPuR#V8I(J_@~H($[ym:`K_+]*kjvW>xH5jbgLBVFGXY:(#4P>zVBklLbdL&XxL\M)%T}3S/IS9lMJ ^St'=VZBR Precedence: bulk Eric writes: > On Thursday, 24 Sep 2020 at 19:55, Adam Sjøgren wrote: >> I run it in a cron job once a day. > cron is the way to go! I think it depends a lot on how often and for what you search. Integrating the update into the fetching of emails would be nice from the "always updated" perspective, and since notmuch indexing is fast, it probably isn't a problem timewise. Yeah, running 'notmuch new' takes 0.085s for me with 1 new email, and ~95K emails already indexed. I search my email perhaps once a month, so I'm a very casual user of notmuch, nnir and nnselect, and I almost always search for old email, so a lazy cronjob is sufficient for me. But now this discussion makes me want to have it in a hook... Pankaj, please share your hook function, when you get it implemented O:-) Best regards, Adam -- "Religion - is a smile on a dog" Adam Sjøgren asjo@koldfront.dk