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.5 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, RCVD_IN_DNSWL_LOW autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 4608 invoked from network); 24 Sep 2020 16:57:08 -0000 Received: from lists1.math.uh.edu (129.7.128.208) by inbox.vuxu.org with ESMTPUTF8; 24 Sep 2020 16:57:08 -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 1kLUY4-00G8gt-KL; Thu, 24 Sep 2020 11:56:48 -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 1kLUKM-00G8Vb-Io for ding@lists.math.uh.edu; Thu, 24 Sep 2020 11:42:38 -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 1kLUKK-008Z5a-OG for ding@lists.math.uh.edu; Thu, 24 Sep 2020 11:42:38 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:Mime-Version:References:Message-ID:Date:Subject: From:To:Sender:Reply-To:Cc:Content-Transfer-Encoding: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=nuoTONVv3uNzVq+ObeQbagScovQSaYeZkJWYPUwZ7tA=; b=MQWwVyJMCNrmirXAvwfimytkce oqQ4JLsZoudhliGCp3RVWMqIGflGKBXfZOdoJW0d//UXudT0chGDW5ZB3WlWACiiGvzPSh322uTkJ RqGNdwZPD1irivRLxGAbw/+0uyz8ev1e1e8MwqlQs00LXbQnE0BMKQmSsuePgVhWYvYo=; 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 1kLUKD-0000Ia-KI for ding@gnus.org; Thu, 24 Sep 2020 18:42:32 +0200 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1kLUKC-0002mD-Bt for ding@gnus.org; Thu, 24 Sep 2020 18:42:28 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: ding@gnus.org From: Eric Abrahamsen Subject: Re: Does Gnus automatically run 'notmuch new' if configured? Date: Thu, 24 Sep 2020 09:42:23 -0700 Message-ID: <87h7rndt3k.fsf@ericabrahamsen.net> References: Mime-Version: 1.0 Content-Type: text/plain User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cancel-Lock: sha1:A1ku5ey31CfV4HktaGeEeYCgH/E= List-ID: Precedence: bulk Pankaj Jangid writes: > I have just configured notmuch for searching emails managed by nnml > backend. My configuration is > > (setq nnir-method-default-engines > '((nnml . notmuch) > (nnimap . imap))) > > Notmuch help says that we should run "notmuch new" whenever new mail > arrives. > > My question is - does Gnus automatically run "notmuch new" if notmuch is > the configured search engine. No, I don't think it does. If I were you I'd write a tiny wrapper function around `async-shell-command' and run it on `emacs-startup-hook' or `gnus-startup-hook'.