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: Gitlab Migration Date: Sun, 29 Aug 2021 15:55:37 +0300 Message-ID: <83o89gl8ae.fsf@gnu.org> References: <87h7fcnmq0.fsf@posteo.net> <87o89kw0hl.fsf@gnus.org> <0c369b25-aedd-1fdf-4813-503f27e42c7c@yandex.ru> <874kbbznwv.fsf@gmail.com> <8735qvwcqt.fsf@gmail.com> <20210828065708.GA29375@tuxteam.de> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11943"; mail-complaints-to="usenet@ciao.gmane.io" Cc: tomas@tuxteam.de, emacs-devel@gnu.org To: rms@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Aug 29 14:56:33 2021 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 1mKKMT-0002sC-AN for ged-emacs-devel@m.gmane-mx.org; Sun, 29 Aug 2021 14:56:33 +0200 Original-Received: from localhost ([::1]:41888 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mKKMR-0005Do-N5 for ged-emacs-devel@m.gmane-mx.org; Sun, 29 Aug 2021 08:56:31 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54752) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mKKLv-0004ZE-5z for emacs-devel@gnu.org; Sun, 29 Aug 2021 08:55:59 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:36826) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mKKLu-0005tR-Ch; Sun, 29 Aug 2021 08:55:58 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:3020 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mKKLm-0007Uz-IR; Sun, 29 Aug 2021 08:55:50 -0400 In-Reply-To: (message from Richard Stallman on Sat, 28 Aug 2021 23:03:22 -0400) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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" Xref: news.gmane.io gmane.emacs.devel:273406 Archived-At: > From: Richard Stallman > Date: Sat, 28 Aug 2021 23:03:22 -0400 > Cc: emacs-devel@gnu.org > > Would someone like to implement Message-ID threading in Rmail? > I would definitely appreciate it. Is the below good enough? If it is, I can easily code a similar "previous-by-thread" command. Note that this actually goes by sub-thread, i.e. it follows the "In-Reply-To" headers, so if a thread breaks into several separate lines of parallel discussions, this will follow only one of them. I think it's reasonable, given that we have rmail-next-same-subject, which can be used to find the other sub-threads, but I'm no email expert, so I might be missing something. (defun rmail-next-by-thread () (interactive) (let* ((i rmail-current-message) (id (rmail-get-header "message-id" i)) done) (while (and (not done) (< i rmail-total-messages)) (setq i (1+ i) done (string-equal id (rmail-get-header "in-reply-to" i)))) (if done (rmail-show-message i) ;; If not found forward, try backward: messages could have ;; arrived out of order. (while (and (not done) (> i 1)) (setq i (1- i) done (string-equal id (rmail-get-header "in-reply-to" i)))) (if done (rmail-show-message i) (error "No further messages in this thread")))))