From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Marc Coquand Newsgroups: gmane.emacs.help Subject: Re: Open rmail summarized by specific label? Date: Thu, 21 Nov 2024 10:06:50 +0200 Message-ID: <878qtd57tx.fsf@mccd.space> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29661"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Nov 21 09:07:44 2024 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1tE2E3-0007at-3t for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 21 Nov 2024 09:07:43 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tE2DM-0003c5-Av; Thu, 21 Nov 2024 03:07:00 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tE2DK-0003bw-Fa for help-gnu-emacs@gnu.org; Thu, 21 Nov 2024 03:06:58 -0500 Original-Received: from fout-b7-smtp.messagingengine.com ([202.12.124.150]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tE2DI-0006WQ-MP for help-gnu-emacs@gnu.org; Thu, 21 Nov 2024 03:06:58 -0500 Original-Received: from phl-compute-11.internal (phl-compute-11.phl.internal [10.202.2.51]) by mailfout.stl.internal (Postfix) with ESMTP id 1F61311400E8 for ; Thu, 21 Nov 2024 03:06:55 -0500 (EST) Original-Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-11.internal (MEProxy); Thu, 21 Nov 2024 03:06:55 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mccd.space; h=cc :content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:reply-to:subject:subject:to :to; s=fm3; t=1732176414; x=1732262814; bh=QYqs4hiH+fIKlaVQKEgx8 iLCJswLXZCoKv9oOekII58=; b=O04TEXyPWtNIaxa6VRM3FRU2Va3rAm2qylK+e BGBeb0SolwygqHX4B6ZEf2+Xhw2FvWkT75zLngkTlUxeF5s6hzVPJc8jvGeWjVLq 0sVaA8CSJppOlsFb3dSM1YtdFEsJtzDQgaByj/cfL5FsNCC3gt79keIYtOSgzcjq cxRj8kF0o/D3zlvG1H24GmlWyYQo3QEO4Co2pHo5KUckBAgGE2ja/RGGcPEYbahO lNDG3EvKF/YNMfpjSFli0cwhtHxPbgskK4P9mWOrL2BU8UrLtLH0GMouDN0cdhj6 5FEqv40UIylUkki6mEBFeTJSsxywHGghgm9gTctDViQtiW2cA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:reply-to:subject:subject:to:to :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t= 1732176414; x=1732262814; bh=QYqs4hiH+fIKlaVQKEgx8iLCJswLXZCoKv9 oOekII58=; b=CqYwyx5cL1XqIlZYPjPgGgE8SeRQd9KmYeK3O6fV2K/QnBU+LqM eMk6UjLw3JPpJfgwkSQYMhURrvS6wP9hGJxi6/CYM/Mx3Al6yG28rO+da4lQGOTy Bla1aNlJUk7cGOA2NrM9ODLSFQetqGjhNxU3AhJSP2NM9bai3mqlUCCD5dR/+8al /ZjTyzvPyzgtY0dt0xvZOgnjtctwKNZ4SO2aesTmuP2NozQycQsq3FDZEB2Oqota Gcm+pz7NIc2mmi5QH3hmT/TrEKVlkTaf7NCU86ILBP8SM98AksKvip6Joa+sPJs9 yENr0by9HxzUalGRYYKxrdL4IE6+6bzdq0g== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrfeehgdduudefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucenucfjughrpefhvffujg ffkfggtgesthdtredttddttdenucfhrhhomhepofgrrhgtucevohhquhgrnhguuceomhgr rhgtsehmtggtugdrshhprggtvgeqnecuggftrfgrthhtvghrnhepvdetteetiedtkeduvd dvfeehiefhueeiieduueevgeehfeehudehteejjeeghfeknecuvehluhhsthgvrhfuihii vgeptdenucfrrghrrghmpehmrghilhhfrhhomhepmhgrrhgttgesfhgrshhtmhgrihhlrd hfrhdpnhgspghrtghpthhtohepuddpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohep hhgvlhhpqdhgnhhuqdgvmhgrtghssehgnhhurdhorhhg X-ME-Proxy: Feedback-ID: ia2d149fd:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Thu, 21 Nov 2024 03:06:53 -0500 (EST) In-Reply-To: 86plmqrnba.fsf@gnu.org Received-SPF: pass client-ip=202.12.124.150; envelope-from=marcc@fastmail.fr; helo=fout-b7-smtp.messagingengine.com X-Spam_score_int: -23 X-Spam_score: -2.4 X-Spam_bar: -- X-Spam_report: (-2.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.001, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:148363 Archived-At: > No, I don't think so. If you set rmail-display-summary to a non-nil > value, rmail-input will display a summary, but it always displays the > summary of all the messages. However, rmail-input calls rmail, and > rmail runs rmail-mode-hook, so maybe you could define your hook > function which would generate the summary you want. Hmm, that could be an option. When rmail fetches new email, it also automatically opens unread email. Once an email has been read, as I understand it, the unseen label gets removed. So if I use that hook, I worry the following sequence will happen: 1. I run rmail 2. rmail fetches new email, and opens the latest unseen message. 3. The unseen label gets removed from that message. 4. rmail-mode-hook runs, and my function proceeds to summarizes by unseen messages. The latest message is never shown to me, as the unseen label got removed before the hook run. This would result in me actually not seeing all the unseen messages, but I am not sure what the sequence is. C-h v rmail-mode-hook only tells me it is invoked when Rmail is invoked. -- Marc