From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.help Subject: Re: Fixed order of headers in Rmail messages Date: Thu, 10 Feb 2022 07:05:41 +0100 Message-ID: <87r18btf7f.fsf@gnu.org> References: <87czjvyaul.fsf@mother.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="1230"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.7.7; emacs 29.0.50 Cc: help-gnu-emacs@gnu.org To: irek Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Feb 10 07:33:39 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 1nI31O-0000As-HP for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 10 Feb 2022 07:33:38 +0100 Original-Received: from localhost ([::1]:34732 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nI31N-0004dy-EK for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 10 Feb 2022 01:33:37 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:49852) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nI2p7-0006IG-7y for help-gnu-emacs@gnu.org; Thu, 10 Feb 2022 01:20:58 -0500 Original-Received: from [2001:470:142:3::e] (port=49968 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nI2p6-0002Pt-FS; Thu, 10 Feb 2022 01:20:56 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-reply-to:Date:Subject:To:From: References; bh=n1t+KV1rleHYvChx37hkAL6T42IvRzX6ejFmYvfrzLc=; b=KJSQsaINQYHu2g sRv5d7Z6i5X7w4XDzZIrteXGyTLUNEIaE2d+GrwX9CrqZMCyJp+GDxuaU7/NCXCui592/hAd3a6p9 Ps6Ie1dgNGsBSO0i5UgLFdxDqg/mEo62zns5U4prtRCh/G1/s+vbzYEASotTc0O6S7jBbS5SXsaF+ iMIotOiavbnNHHgR6y4EPqMApu6apzW8RUWFNsDoGup8nbWBCrmYpZCh5Gyj4ZXc27JF1edBGvAsm BeI7TbkgDD1YiFozHuyu66scFfav3Mor0j8w2Wua266R3LDm4WNjXLGMpK1fFP8D+tNH/sZWzMGqX LOdlXdIoxFqG4Ey97DZw==; Original-Received: from auth1-smtp.messagingengine.com ([66.111.4.227]:44263) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nI2p5-0001U0-UX; Thu, 10 Feb 2022 01:20:56 -0500 Original-Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailauth.nyi.internal (Postfix) with ESMTP id 72FA527C0054; Thu, 10 Feb 2022 01:20:55 -0500 (EST) Original-Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Thu, 10 Feb 2022 01:20:55 -0500 X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddriedtgdelvdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepfhgfhffvufffjgfkgggtsehttdertd dtredtnecuhfhrohhmpefvrghsshhilhhoucfjohhrnhcuoehtshguhhesghhnuhdrohhr gheqnecuggftrfgrthhtvghrnhepveevieekteekveeigfefffeivdetgeduvdffueeuud evgedttdehvdfhueevfffhnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehm rghilhhfrhhomhepthhhohhrnhdomhgvshhmthhprghuthhhphgvrhhsohhnrghlihhthi dqkeeijeefkeejkeegqdeifeehvdelkedqthhsughhpeepghhnuhdrohhrghesfhgrshht mhgrihhlrdhfmh X-ME-Proxy: Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 10 Feb 2022 01:20:54 -0500 (EST) In-reply-to: <87czjvyaul.fsf@mother.org> 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:135875 Archived-At: irek writes: > Each Rmail message have headers printed in different order. Reason > for that is obvious but I was looking for convenient way to have > chosen headers always in the same order in all messages. 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. 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. Bye, Tassilo