From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id WDJjHKcRYmJiSwAAbAwnHQ (envelope-from ) for ; Fri, 22 Apr 2022 04:23:35 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id qMtwG6cRYmJmHAAAG6o9tA (envelope-from ) for ; Fri, 22 Apr 2022 04:23:35 +0200 Received: from mail.notmuchmail.org (yantan.tethera.net [135.181.149.255]) (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 25E5F3BEF for ; Fri, 22 Apr 2022 04:23:34 +0200 (CEST) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 2BF1E5F74F; Fri, 22 Apr 2022 02:23:31 +0000 (UTC) Received: from sonic316-12.consmr.mail.bf2.yahoo.com (sonic316-12.consmr.mail.bf2.yahoo.com [74.6.130.122]) by mail.notmuchmail.org (Postfix) with ESMTPS id A0B245F527 for ; Fri, 22 Apr 2022 02:23:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1650594207; bh=gc6Y+k11u/SC/W/nYmPwKX8Bd40MqOqFnChM5Ha/JAM=; h=From:To:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=TNfE8JUl19UD34g5BULarxruakh1AbiX4adhGD7HSu0zuX+QzvH50PiT4XQPA/wGGb9VuuQ9Trl1XyYJoROT5bVwaS/FucMH5bRa0dl8Ua0Mo7xNoU6tQpxXRftteiSoVc/NdOlDQH/gRdAgvoiqd4rijq3SQR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CfzQYHKpXzNPINqfved8cGAOFva3BuTP3T2xiHqdNN326oI2VuCR0r tmsMNtNNIJvI7hm1LCgvysyUz6VLh7Zn_uIz_a0.sv8119VIhhhEicTVxvFiNNF4NPH8E154CKYJ We.j9uS0iGfxCnF1DFVJylkh.q5pXtKj30XtoURSi6tW2x6aAgZEhmxS4FHe3bf1lpzYv1u4IxTP S1ogj1No8gFDa.mlK0hxOb5ld_kJ1jRF4Tr7wJwSwUDKBPpvTPaBGkwScAtiyyFJwK4DBJrfjH27 zUX_MA4pJJnlhC9fRpLCb_Eog0ArQlLrfeKiqJYRcowTCM1rHeUxu7Donuc8PB7rlGmmKDF_UTIJ B4372YLJS3IIoOARxFJnJX7wCOn7FFK3PykzubWZQEajCw.FBjm4trZ3k.aTqGvKMI3MXGc9DDxS LO7ByO2CbbzQHpQpyFrnWpXk8ar8QyKhCMH1rnKAXKAY4RVG8QeK2s.tTbMPsbhqq3n5eMvjHXLs BCa8c3I.oO1jcr5HoABkeYGUM99SSEk2KQZSrvdtvpMKUWfvNDPyJbm5tM89Gzz3bYEv8DHlPdnv 9Hit6EfvvnB6_T2kgv3xBqhHaxZaXYhCJYfL7FT8g4acPLy3Alhh2axv6iWU7H3w.qeue8_0wwSt DX8t_KRAnIDwyhhJ4CAF5oZZ5qqshpX0UT6Y9SRay6fB4LarFPlvdTLS4OZjApOEvm8mew2t2uOR 7Ub5Cpr_WEui1ahAFcQ-- X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic316.consmr.mail.bf2.yahoo.com with HTTP; Fri, 22 Apr 2022 02:23:27 +0000 Received: by hermes--canary-production-bf1-7cfdddd556-5htvd (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID c6c763d53a801c408a1fe4041ec2c934; Fri, 22 Apr 2022 02:23:24 +0000 (UTC) From: Ishe Chinyoka To: David Bremner , notmuch@notmuchmail.org Subject: Re: Autorefresh buffer at set interval In-Reply-To: <877d7ili8n.fsf@tethera.net> References: <87zgkmcwc0.fsf.ref@chinyoka.com> <87zgkmcwc0.fsf@chinyoka.com> <877d7ili8n.fsf@tethera.net> User-Agent: Notmuch/0.35 (https://notmuchmail.org) Emacs/28.1 (x86_64-pc-linux-gnu) Date: Fri, 22 Apr 2022 04:21:44 +0200 Message-ID: <87mtgdvow7.fsf@chinyoka.com> MIME-Version: 1.0 X-Mailer: WebService/1.1.20118 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Message-ID-Hash: S564AIJLMLSF6H5DFT4OYB63MB4KTMRB X-Message-ID-Hash: S564AIJLMLSF6H5DFT4OYB63MB4KTMRB X-MailFrom: ishechinyoka@yahoo.com 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=1650594215; 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:dkim-signature; bh=5L6spAGJu6h2Ow2Zu7GgAh2+JbpE547BIcMNa3h5Xl0=; b=ide+QivMgI4fs1VKh8bEDLiAg6oLWBMr4OVUZebTFKHKgKt9GMCWtCz/24pBMQh7CsYQVe C7yeJWwPqWa5I6mFoJSCnZKCMZGh61PqB2DcKuoDK43eHVVkw+iECml4dJLEIZxNEj7PpF UXkKPrqqpnW0+98hLWzMh7OjnJ0eSp55PBRs/R16NUAMBhYVGxer/HJrBRGQ4U3X7Hud8D uq5tXcuzc3fYqZuOFY7TXhjrYtSWPohx+n1ao9bEYi1YXns77mKAHSjlDmfFdiZC9qorJv exhhGtZb++z8Tji/Nfgs/KcKYjs5M5ZWryGqL3ai+3c2HgztKDuCzyr91coyzw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1650594215; a=rsa-sha256; cv=none; b=hjlX3Iiz5t9Kvlfdkb1uAxyL1PId0Aohocp6zja0Lx7g8EZNHxvyQhfyeud8MA6kKX67ed PyG9nD0tk8ZOHbkoNWEiGdxKvCFk+lXKjYXuFfMCaLutjUdVY+bZmXijdJcqUiN58LwLA8 te1ZE69cEmcQvERWw+c8PtYIBAux3df8RKeAEwZALMSmXRO3oNHFTVuBMdC7NXAb03dO5+ sseY3iAO2aFBncXlzdBMf3zJ/DV7+Vc1RL12vja8Gyab1xazel2d3vLW+1VJVJ7eGa6ZIa dr3v0jT+pyO7TWAy2jXM+qp+HDUf1dxtoS7uH2KInTWa2vufBjbT63V94i19Pw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=yahoo.com header.s=s2048 header.b=TNfE8JUl; dmarc=fail reason="SPF not aligned (relaxed)" header.from=yahoo.com (policy=reject); spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 135.181.149.255 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: 6.00 X-Spam: Yes Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=yahoo.com header.s=s2048 header.b=TNfE8JUl; dmarc=fail reason="SPF not aligned (relaxed)" header.from=yahoo.com (policy=reject); spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 135.181.149.255 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: 25E5F3BEF X-Spam-Score: 6.00 X-Migadu-Spam: Yes X-Migadu-Scanner: scn1.migadu.com X-TUID: f9GHHs6vPM8l Thanks David for the pointer to the timer documentation in the Elisp manual. I successfully wrapped the refresh function in the run-with-timer, such that every 15 minutes I automatically check for new mail. The setup now works like a charm. Thanks once again. Ishe David Bremner writes: > 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") >