From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: irek Newsgroups: gmane.emacs.help Subject: Re: Fixed order of headers in Rmail messages Date: Thu, 10 Feb 2022 08:21:14 +0100 Message-ID: <877da3xk45.fsf@mother.org> References: <87r18btf7f.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6402"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: Tassilo Horn Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Feb 10 08:49:36 2022 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 1nI4Ct-0001UZ-KH for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 10 Feb 2022 08:49:35 +0100 Original-Received: from localhost ([::1]:44282 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nI4Cs-0001KQ-4f for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 10 Feb 2022 02:49:34 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:33672) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nI3lh-0001pI-A8 for help-gnu-emacs@gnu.org; Thu, 10 Feb 2022 02:21:36 -0500 Original-Received: from mxbwn02.webd.pl ([194.181.228.13]:51788) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nI3lc-0004hm-UT for help-gnu-emacs@gnu.org; Thu, 10 Feb 2022 02:21:27 -0500 Original-Received: from wn02.int.webd ([192.168.101.102] helo=wn02.webd.pl) by mta01.webd.pl with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92.3) (envelope-from ) id 1nI3lV-0005I5-NJ for help-gnu-emacs@gnu.org; Thu, 10 Feb 2022 08:21:17 +0100 Original-Received: from [192.168.101.231] (port=56136 helo=mta01.int.webd) by wn02.webd.pl with esmtp (Exim 4.93) (envelope-from ) id 1nI3lV-0001Jw-IR; Thu, 10 Feb 2022 08:21:17 +0100 X-Quarantine-ID: X-Virus-Scanned: amavisd-new at mxwn02.webd.pl Original-Received: from wn02.webd.pl ([192.168.101.102]) by mta01.int.webd (mxwn02.webd.pl [192.168.101.200]) (amavisd-new, port 10024) with ESMTP id IqyDSJku32NP; Thu, 10 Feb 2022 08:21:15 +0100 (CET) Original-Received: from [85.128.106.18] (port=34248 helo=mother) by wn02.webd.pl with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1nI3lT-0001J3-Cu; Thu, 10 Feb 2022 08:21:15 +0100 In-Reply-To: <87r18btf7f.fsf@gnu.org> (message from Tassilo Horn on Thu, 10 Feb 2022 07:05:41 +0100) Received-SPF: pass client-ip=194.181.228.13; envelope-from=mail@gumen.pl; helo=mxbwn02.webd.pl X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=unavailable 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" Xref: news.gmane.io gmane.emacs.help:135877 Archived-At: Tassilo Horn writes: > The obvious reason you've mentioned is that rmail just shows your > gazillion-mails MBOX file and narrows it down to a single message and > its interesting headers. So the order of headers shown to you is the > order of headers in the mail. Yep, that's the reason. That's why I though about sorting them after fetching with fetchmail or movemail programs. > A way to do what you want would be to add a function to > `rmail-show-message-hook' which parses the visible headers into a list, > sorts them to your liking, and creates an overlay from the start to the > end of the actual headers with a 'display propery whose value is the > sorted version. Hmm. I haven't thought about using overlay. That will eliminate need of modifying original message. I will try that. Thanks.