From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id QP+MGnBRYWK/NAAAbAwnHQ (envelope-from ) for ; Thu, 21 Apr 2022 14:43:28 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id MBiyGXBRYWJLEgEAG6o9tA (envelope-from ) for ; Thu, 21 Apr 2022 14:43:28 +0200 Received: from mail.notmuchmail.org (yantan.tethera.net [IPv6:2a01:4f9:c011:7a79::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id EA5FF13894 for ; Thu, 21 Apr 2022 14:43:27 +0200 (CEST) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 53FC45F74F; Thu, 21 Apr 2022 12:43:25 +0000 (UTC) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by mail.notmuchmail.org (Postfix) with ESMTP id D784D5F743 for ; Thu, 21 Apr 2022 12:43:22 +0000 (UTC) Received: by fethera.tethera.net (Postfix, from userid 1001) id EFE9A5FBD7; Thu, 21 Apr 2022 08:43:21 -0400 (EDT) Received: (nullmailer pid 3102171 invoked by uid 1000); Thu, 21 Apr 2022 12:43:20 -0000 From: David Bremner To: Ishe Chinyoka , notmuch@notmuchmail.org Subject: Re: Autorefresh buffer at set interval In-Reply-To: <87zgkmcwc0.fsf@chinyoka.com> References: <87zgkmcwc0.fsf.ref@chinyoka.com> <87zgkmcwc0.fsf@chinyoka.com> Date: Thu, 21 Apr 2022 09:43:20 -0300 Message-ID: <877d7ili8n.fsf@tethera.net> MIME-Version: 1.0 Message-ID-Hash: SG5XCODSOJT5RQATPH2ESKHUZQYGV6KJ X-Message-ID-Hash: SG5XCODSOJT5RQATPH2ESKHUZQYGV6KJ X-MailFrom: david@tethera.net X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-notmuch.notmuchmail.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.3 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: DE ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1650545008; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-owner:list-unsubscribe:list-subscribe:list-post; bh=RlPbvt69wPs51/rF3aSgzPuRwtGWnLQ3Z7ApU1qTRRw=; b=mA5byoygjUbKwMLz2Qf5bKLCJYjIVFdkncIuKNZH5VI4xiBfIL+5m7wVl2f3eHJUe8iZnE 68GPnARRNuiqWec+cIEMV5j0NyxrQjOev5NrFMb4bO5Kdrg+Z6rTJP3Tpsv9e5bxreMyNi 49XxpaQx1pfxJx+WfbKo9tO6MzqKzEnzMZla4JhkOf4QachqalbO6V5HPVrer5d5ib1q76 MdzGzN+oTqCbQ5NpFsaw6s/JMgHR2ikg2wLC49i10xqsbNLNJAN5Hnqm0EUg1r8D4UroC7 uYDv//nPQavhdx4wwCYKiOxtV6dim6JUo56r25gmAZPq95HqKAe9tWrMJpwOzA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1650545008; a=rsa-sha256; cv=none; b=TlPCs8FY3C1apiVp2iPNAXcYhYWhw/lE/vgJxbN9ihmFp4AhulMjoGdyDMct8aur3QTYNo RXlPGYvFVe7HO1/AM8QJWXNqPTbvNAHN7FOcLQG3uXu9NIajWyCTyPDzix/PzufywqQqCd KLTchAe23L9iPavNcsKm3uWh1hCYyLAfG2FeCurzwckpyaVFgSDNfRRms3LMrLeHVMK3Tk 6dxc6ET5VXoe4ZeWfwp1+KfJAfcoSEOwxI5Hd6E99kZ6o2mY4sTixCEKY9NRD0pLsZ0boO +uG94vJF4chx+fwvVgHTZv7iqlM0p0gLmy64Wn0+SqeyVHfYTXyj+rx3V7bn/A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2a01:4f9:c011:7a79::1 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: -0.97 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2a01:4f9:c011:7a79::1 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: EA5FF13894 X-Spam-Score: -0.97 X-Migadu-Scanner: scn1.migadu.com X-TUID: XZaICOmA5Rp8 Ishe Chinyoka writes: > I am sorry if this is in the documentation, but I am failing to pick > the right spot. Anyway, which variable can I set to have notmuch-poll > triggered at a set interval? I don't think this currently exists. You could define your own timer [1]. > BTW, I am on Arch and am running the Offlineimap as a systemd timer to > pull my messages every fifteen minutes. I also have a Notmuch script > under the ~/.mail/.notmuch/hooks/ that runs every time offlineimap > completes the refresh. My problem is now that after all this, I can't > seem to have the Notmuch emacs interface update automatically without me > doing a manual refresh with "G" keystroke. I suspect you only need "g" rather than "G", if you are already running notmuch new via a hook. > This morning I tried putting > notmuch-poll-and-refresh-this-buffer as a function in the notmuch-hello > hooks. You may want the function notmuch-refresh-all-buffers; that could go in your timer. [1]: (info "(elisp) Timers")