From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Rmail: new feature to deal with In-Reply-To and References headers Date: Sun, 10 Dec 2023 07:48:02 +0200 Message-ID: <83il56wqul.fsf@gnu.org> References: <83v897wf2y.fsf@gnu.org> <329adea46dd0abf07b03369a0fbe97d0@posteo.net> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16204"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: rameiko87@posteo.net, Andrea Monaco Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Dec 10 06:48:45 2023 Return-path: Envelope-to: ged-emacs-devel@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 1rCCgF-0003zT-QM for ged-emacs-devel@m.gmane-mx.org; Sun, 10 Dec 2023 06:48:43 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rCCfr-0001AX-2A; Sun, 10 Dec 2023 00:48:19 -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 1rCCfp-0001A8-5b for emacs-devel@gnu.org; Sun, 10 Dec 2023 00:48:17 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rCCfo-0008Jl-DS; Sun, 10 Dec 2023 00:48:16 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=z4UZoteWWq/+gfjvuNcHb7CjkB1nkZBPtV2smL6rFXM=; b=m4v6PEYeF69l K+GKjJ0Lt6T3Gzr2ffIU+n1FHQhNf+b0F8Cyma6hLn1atg4oo4DTt8/+mmviMUTAn4ZLdma/yNzwf 9v7VoTN98ma4RbJ7Lt4ewv6ZKlB/cJbRS9l7N1MXjtBEP6DybFW85AlQ/LmekYFHcsvqTE7gFzl3I qPrLk2FeXXMe8A3yP8RVulqkilf0ZRdAqyhMDvOffO1Z6FZ2tIBkn2trTOrxIXIbhW07cWCglY2W2 RNLuk9gsL3H9ZFvhbl3q5s60ft+oY/CqCrQ/9JWhnzefRgMDaTMQZFVAmceso0Pfjr4b6w19GQnV6 I8alLExGTNI1OJp/5PqApQ==; In-Reply-To: <329adea46dd0abf07b03369a0fbe97d0@posteo.net> (rameiko87@posteo.net) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:313655 Archived-At: > Date: Sat, 09 Dec 2023 21:54:36 +0000 > From: rameiko87@posteo.net > Cc: emacs-devel@gnu.org > > > AFAIU, you should already be able to do that in Emacs 29, by using the > > new command rmail-summary-by-thread. After creating that summary, you > > can use the usual message movement commands to move between messages > > belonging to a thread. > > In fact it's not the case, because the order on the summary buffer > centered on a given message does not correspond in general to the > parents-descendants order of the thread containing that given message, > as defined by moving up on the References header for that message. > > >> Move to the previous message in the same thread as the current one > >> (that is, the message whose Message-ID is the last entry of the > >> References header, among messages in the Rmail file). Repeat argument > >> goes back to the n-th last entry of the References header among > >> messages in the Rmail file. > > This feature is not implemented currently unless the parents vector is > populated with the same order given by the References header. Someone > remembers how the parents vector is recursively defined in rmailsum.el? > > And still, going up on the chain requires regenerating the summary > buffer by centering every time on the parent. > > >> Move to the message which the current message is replying to (that is, > >> the message whose Message-ID appears in the In-Reply-To header), error > >> if not present on the Rmail file. Repeat argument iterates the command > >> n-times, perhaps replacing the messages which it can't find in the > >> Rmail file by their youngest parent. > > This is not implemented currently. Patches to improve the existing implementation of by-thread summary will be welcome, of course. It is a new feature, so I'm not surprised that it has some rough edges. Adding Andrea, who implemented this feature, in the hope that he will have some comments or maybe patches.