all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Tassilo Horn <tsdh@gnu.org>
To: irek <mail@gumen.pl>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Fixed order of headers in Rmail messages
Date: Thu, 10 Feb 2022 07:05:41 +0100	[thread overview]
Message-ID: <87r18btf7f.fsf@gnu.org> (raw)
In-Reply-To: <87czjvyaul.fsf@mother.org>

irek <mail@gumen.pl> 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



  reply	other threads:[~2022-02-10  6:05 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-09 21:43 Fixed order of headers in Rmail messages irek
2022-02-10  6:05 ` Tassilo Horn [this message]
2022-02-10  7:21   ` irek
2022-02-10  7:44   ` Eli Zaretskii
2022-02-10  8:37     ` Tassilo Horn
2022-02-10 12:03       ` Eli Zaretskii
2022-02-10  6:06 ` Eli Zaretskii
2022-02-10  7:17   ` irek
2022-02-10  7:54 ` Jean Louis
2022-02-10  8:06   ` irek
2022-02-10  8:26     ` Jean Louis
2022-02-12 12:27 ` irek
2022-02-12 18:37   ` Jean Louis
2022-02-12 23:10     ` irek

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87r18btf7f.fsf@gnu.org \
    --to=tsdh@gnu.org \
    --cc=help-gnu-emacs@gnu.org \
    --cc=mail@gumen.pl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.