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.7 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, RCVD_IN_DNSWL_LOW autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 9673 invoked from network); 25 Sep 2020 14:45:56 -0000 Received: from lists1.math.uh.edu (129.7.128.208) by inbox.vuxu.org with ESMTPUTF8; 25 Sep 2020 14:45: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 1kLoyL-00GKz6-FY; Fri, 25 Sep 2020 09:45:17 -0500 Received: from mx2.math.uh.edu ([129.7.128.33]) by lists1.math.uh.edu with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94) (envelope-from ) id 1kLoyF-00GKxF-Id for ding@lists.math.uh.edu; Fri, 25 Sep 2020 09:45:11 -0500 Received: from quimby.gnus.org ([95.216.78.240]) by mx2.math.uh.edu with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94) (envelope-from ) id 1kLoyD-009Ifh-Ic for ding@lists.math.uh.edu; Fri, 25 Sep 2020 09:45:11 -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:Message-ID :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=EUL4ugeR41WXHfE4uUsPV0OptK6IFm/M/HHZyjXw/i4=; b=A56OLjy/B/eK2A5w5+n6DTUBei LHJ0TBmops6J3PbWqgzzfu9vL0Uw60+i+Dk/0b7UHpwdAbQcCxnBVz1DanIsypwhn9rXAqLrh7nMG +ymsq0RFTBJ3nQ5kByUNWgCPj+UGgdatN1OU9OfkB1xWK1C5hlXPgaS3YB+XtvViFx/w=; Received: from mail-pj1-x102f.google.com ([2607:f8b0:4864:20::102f]) by quimby with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1kLoy5-0003Nk-1N for ding@gnus.org; Fri, 25 Sep 2020 16:45:04 +0200 Received: by mail-pj1-x102f.google.com with SMTP id a9so1966117pjg.1 for ; Fri, 25 Sep 2020 07:45:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=codeisgreat-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:organization:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=EUL4ugeR41WXHfE4uUsPV0OptK6IFm/M/HHZyjXw/i4=; b=Gj8fCEmZKExPS+wugH0IOktgTBC1azCDVMWc70AAVLM7PIrcpsAoay6iTw9RIZxXRl 0Ulg2Rf2ja52eHm4PHurM3VyFr/bGR4S3m0ll4ByP+kaZHD9aLZwDhtB3QHf3eSlOhsA Mq1BYJmp1EhHvGwaKeJzcSAnXyw+CIoX77dxGvWaV/Q5McA4swufWqIE4DmGzvBNdbII KwGwAeFN7hc9wkp+uuNoZQQ80SDbbJoiaqwrcE5eBfUSGwFO6reaRr9Yd5C+GEZcnCY1 1c+YH172vtij4QxKNkjSDnJYC+00ESAWWBFbWCUJttRaExJalDYo1m2qGr9ABCCh8fzg UCQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:organization:references:date :in-reply-to:message-id:user-agent:mime-version :content-transfer-encoding; bh=EUL4ugeR41WXHfE4uUsPV0OptK6IFm/M/HHZyjXw/i4=; b=JQdkfA+nZ7hdS/3LdvqdxCunIKoHE244wVpoUeZB7gFwuF5A7LeKNGXmXVAS/kAwTs kOklUHPNpAyaF2A5zsPIUXjWnOI/E5h1zbEef8M8ugAmejr7klZCabVZIJZ5MP3YdGY3 HuXxc6kii1IXQrrdsVVvT+VAp4AbNVIo18b2+Qqf5M75tRpdhLLPfdEoazaeVedgg+f+ C81YTYC+IkI2d7/WOHHlkR/ON3fI5VzMz5ygm4y04/iBlV01JeMEwIQFKzejOL+tWwZ6 9lr4Nujz+KqCkpcyEb9DDhpaolKVUWHB7ev1QgeL4j91tmlXggDVBRHDaY0Jx/M5iKI5 bMlw== X-Gm-Message-State: AOAM5329PAeESmum7Ms5Gr9MeGh0lv+DLEYfkEYOJKB4s8Mlk8d8GYe1 9Vk2urDyccK/vkA1y/KwA+m4U9CNp08m0w== X-Google-Smtp-Source: ABdhPJyTcsRrEQPpovR9wLlckL3kh8TQNWVRkG07cFyXocz8sAJDPLQj5N7H0Uq3542I4Xweaai1mA== X-Received: by 2002:a17:90b:f0b:: with SMTP id br11mr635755pjb.191.1601045098553; Fri, 25 Sep 2020 07:44:58 -0700 (PDT) Received: from BigBook.local ([2405:201:5c06:7085:3465:874d:a087:e76b]) by smtp.gmail.com with ESMTPSA id l14sm2231521pjy.1.2020.09.25.07.44.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Sep 2020 07:44:58 -0700 (PDT) From: Pankaj Jangid To: Adam =?utf-8?Q?Sj=C3=B8gren?= Cc: ding@gnus.org Subject: Re: Does Gnus automatically run 'notmuch new' if configured? Organization: Code Is Great Foundation References: <875z83njo0.fsf@tullinup.koldfront.dk> <87o8luz39v.fsf@ucl.ac.uk> <87o8lukxsm.fsf@tullinup.koldfront.dk> X-Face: #1mZPTdyZkzei|Hk$MhE?f(3T[Uxh9MW'Ewn610"\p9Q@7LjiO{4>uH&z3p'6Y?_,h)GQ'Y A;.i)[28BKd`Ton]]cOd|#isdz)&E!jRx@DX8N/*63[|x&JqwC,AmukEFVvt&AA*2H..Z'wxqs([H> kbp(Q/\fTwAm% !C}\xG0DS7(DaXPynsU3VED[SbY_:*`C`U'@;vp[YQ6I\#>E/slE#fLI4ap(^kSLS\*/ ]XNNMD6#b9KK\|:=(=DFek9%)L-ZTg3n#$0B Date: Fri, 25 Sep 2020 20:14:55 +0530 In-Reply-To: <87o8lukxsm.fsf@tullinup.koldfront.dk> ("Adam =?utf-8?Q?Sj?= =?utf-8?Q?=C3=B8gren=22's?= message of "Fri, 25 Sep 2020 11:31:21 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1.50 (darwin) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-ID: Precedence: bulk On Fri, Sep 25 2020, Adam Sj=C3=B8gren wrote: > 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. Not only that. I want to keep all the Emacs/Gnus setup in one place; so that it is portable. On a new machine I'll just have to clone my .emacs.d.git. Cron is another thing to remember if I go via that route. > Yeah, running 'notmuch new' takes 0.085s for me with 1 new email, and > ~95K emails already indexed. > > ... > > 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:-) Now that I have put a lambda function to invoke `async-shell-command`, it opens up *Async Shell Command* buffer in another window whenever I press `g`. I want the messages in *Async Shell Command* buffer. But I don't want it to open up on every call to `gnus-group-get-new-news`.