From: Ben Hancock <ben@benghancock.com>
To: m43cap@yandex.com
Cc: fernandodemorais.jf@gmail.com, help-gnu-emacs@gnu.org
Subject: Re: Rmail tips
Date: Thu, 15 Feb 2024 08:08:13 -0800 [thread overview]
Message-ID: <87ttm9iuc2.fsf@benghancock.com> (raw)
In-Reply-To: <875xytu4xj.fsf@yandex.com> (message from Colin Baxter on Mon, 12 Feb 2024 14:34:48 +0000)
[Ben wrote:]
>> When a message is "unseen", the dash at position 6 (zero-indexed)
>> gets a special "U" flag, changing the header to this:
>>
>> X--RMAIL-ATTRIBUTES: ------U-
>>
>> Rmail treats these messages differently; it will default to opening
>> the first unseen message when reading a file into rmail, and unseen
>> messages get a different face in the summary buffer so they stand
>> out.
[Colin replied:]
> I never knew that. I get the X-RMAIL-ATTRIBUTES header but not the `U'
> on messages that are definitely unseen. Is there some variable that
> must be set to actually see these attributes?
I don't think so; from what I can tell, the U flag is set on messages
that Rmail retrieves out of what it calls the "inbox" - either a system
mailbox, or a remote mailbox. See (info "(emacs) Rmail Inbox").
In rmail.el, it looks like this process calls a function named
rmail-add-mbox-headers that sets the U flag. It sounds like you're using
procmail to put new mail into your rmail-file-name directly, so that
step doesn't happen.
You may be able to use procmail to add the header as messages to come
in, perhaps in combination with formail. I don't use either, but based
on docs it seems possible:
https://linux.die.net/man/1/formail
Best,
Ben
next prev parent reply other threads:[~2024-02-15 16:08 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-12-11 13:58 Rmail tips Ben Hancock
2024-02-07 0:36 ` Fernando de Morais
2024-02-07 11:23 ` Dr Rainer Woitok
2024-02-07 11:50 ` Fernando de Morais
2024-02-07 11:52 ` Stephen Berman
2024-02-09 14:01 ` Ben Hancock
2024-02-09 19:22 ` Colin Baxter
2024-02-10 7:05 ` Ben Hancock
2024-02-10 8:29 ` Colin Baxter
2024-02-12 13:53 ` Ben Hancock
2024-02-12 14:34 ` Colin Baxter
2024-02-15 16:08 ` Ben Hancock [this message]
2024-02-21 6:00 ` Colin Baxter
2024-02-15 13:21 ` Fernando de Morais
2024-02-15 13:23 ` Fernando de Morais
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=87ttm9iuc2.fsf@benghancock.com \
--to=ben@benghancock.com \
--cc=fernandodemorais.jf@gmail.com \
--cc=help-gnu-emacs@gnu.org \
--cc=m43cap@yandex.com \
/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.