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 14942 invoked from network); 26 Sep 2020 01:31:06 -0000 Received: from lists1.math.uh.edu (129.7.128.208) by inbox.vuxu.org with ESMTPUTF8; 26 Sep 2020 01:31:06 -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 1kLz2V-00GRj9-Jt; Fri, 25 Sep 2020 20:30:15 -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 1kLz2Q-00GRhF-PT for ding@lists.math.uh.edu; Fri, 25 Sep 2020 20:30:10 -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 1kLz2N-002sVm-Qh for ding@lists.math.uh.edu; Fri, 25 Sep 2020 20:30:10 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: 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=EjoTeBoJkr0xU2xJvOlOE4QnpbSWbnjGQZ85Nqz9jLo=; b=Ck+Anur3sBbm83nd1IuShJu+wi l4Fd7RlPHjkI6SlWPrgJ61/U4MILdFix9Cn2e9aaZBFq0nh5ysuVZXnjQZ4lwqL16BWFAqZMHramc 41Agm3daMqGHFHVxM1HY5lt5IH0XwJy2Vkzj2niMBoLmNQdHFBTqIJSBGoJxxvxg8Mgc=; Received: from mail-pl1-x632.google.com ([2607:f8b0:4864:20::632]) by quimby with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1kLz2B-0000sQ-SK for ding@gnus.org; Sat, 26 Sep 2020 03:30:03 +0200 Received: by mail-pl1-x632.google.com with SMTP id m15so210487pls.8 for ; Fri, 25 Sep 2020 18:29:54 -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; bh=EjoTeBoJkr0xU2xJvOlOE4QnpbSWbnjGQZ85Nqz9jLo=; b=R2GDcfCfSsJkbhHwjh2NXScmMXzkkiQKG+HTHPiCITTke0yWDraGCHqIfka67ZUEaU fA06UFELWxzlqVDn7+puMYJOvB2w2BKxq5diLkAvog3YCCj1YR0jYC0tCEbfRYyNG9x2 +1aEiEvAYQjuP3ZoQcD15vQE6JecDLgbEnt9f+khs2egnVvriEVSQ2IdZDivK9p515bG jh3ch4txc7BUH3R6U1T61Ib9uaAP//7mn4D9WhPkxWNrtMBu67fvSxkyyVgIBAowNTw/ 54zA+3uRmo4jXpDYAfTpZU5ZF9WDhk4IblJU/DG1sOc9YnnSjovNnnxilQds1p259V8W y1yw== 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; bh=EjoTeBoJkr0xU2xJvOlOE4QnpbSWbnjGQZ85Nqz9jLo=; b=O6wTpasUjG4PIO5isLZQwY5ZeiBVb4bgrHbRaEG8I96HERW18fBWYaVjkXChro4DmW ZoCPd81Soaktj4JT7kr2X+2tIIDqNJBqiw1FUOyXBWkfBtuTitRjEsDEab6LYj3QUeXP fvXJyMNxmxvOl+Zaw5dhJUy5AN+XZ36ZADnsVKb3wiWblHmYcZux0OzO6xiAUptLvoJK s2tY3IN6hoeem1eM5N2IcJl4BO2HaOWJwkoGwGtmmoy1usuqXIbbc5NSS0FxXpLXNdCG ZhFPdPjDqAZ/U0HgpZDqt20i6/fEE0ZE3d9TTY51GiMwg3LX27ifh6Q3DqwAs1J1GfjT hzMg== X-Gm-Message-State: AOAM531B8iRueBfyxczvAp5Jbg/X6JfhXxcBJJLdDDnkK4CWeD5m12VC fkcSxQyIbSRABCVm4uQAZSZsJ1MuKA+tUg== X-Google-Smtp-Source: ABdhPJzEtYlTaMG7H8Rljg3/oiqB+RlIY4p88ZGa0xQLk7KjunxET5cbxo99DdQuxL9cJAVmha1e4w== X-Received: by 2002:a17:90b:1111:: with SMTP id gi17mr266601pjb.109.1601083792779; Fri, 25 Sep 2020 18:29:52 -0700 (PDT) Received: from BigBook.local ([2405:201:5c06:7085:3465:874d:a087:e76b]) by smtp.gmail.com with ESMTPSA id t7sm3307461pgh.25.2020.09.25.18.29.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Sep 2020 18:29:52 -0700 (PDT) From: Pankaj Jangid To: Eric Abrahamsen 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> <873635akcz.fsf@ericabrahamsen.net> <87mu1ditjz.fsf@ericabrahamsen.net> 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: Sat, 26 Sep 2020 06:59:49 +0530 In-Reply-To: <87mu1ditjz.fsf@ericabrahamsen.net> (Eric Abrahamsen's message of "Fri, 25 Sep 2020 11:45:52 -0700") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1.50 (darwin) MIME-Version: 1.0 Content-Type: text/plain List-ID: Precedence: bulk >> (start-process "notmuch" "*Notmuch*" "notmuch" "new") >>> which hook is best for the purpose? Currently I am using >>> `gnus-after-getting-new-news-hook`. But that is run only when I >>> press `g` (gnus-group-get-new-news). It seems that the hook is not >>> invoked when I start Gnus. >> (defadvice gnus (after gnus-notmuch-new activate) >> (your-run-notmuch-new-function)) > Rather than an advice, I would just add your function to the > `gnus-startup-hook', as well. There was one more enquiry in this regard. Probably most of the Gnus users are using splitting as well... probably, and I am sure "notmuch new" should be run after the splitting action is over. Is there a hook for that?