unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Marc Coquand <marc@mccd.space>
To: help-gnu-emacs@gnu.org
Subject: Re: Open rmail summarized by specific label?
Date: Thu, 21 Nov 2024 10:06:50 +0200	[thread overview]
Message-ID: <878qtd57tx.fsf@mccd.space> (raw)
In-Reply-To: 86plmqrnba.fsf@gnu.org


> No, I don't think so.  If you set rmail-display-summary to a non-nil
> value, rmail-input will display a summary, but it always displays the
> summary of all the messages.  However, rmail-input calls rmail, and
> rmail runs rmail-mode-hook, so maybe you could define your hook
> function which would generate the summary you want.

Hmm, that could be an option.

When rmail fetches new email, it also automatically opens unread email.
Once an email has been read, as I understand it, the unseen label gets
removed.

So if I use that hook, I worry the following sequence will happen:

1. I run rmail
2. rmail fetches new email, and opens the latest unseen message.
3. The unseen label gets removed from that message.
4. rmail-mode-hook runs, and my function proceeds to summarizes by
unseen messages. The latest message is never shown to me, as the unseen
label got removed before the hook run.

This would result in me actually not seeing all the unseen messages, but
I am not sure what the sequence is. C-h v rmail-mode-hook only tells me
it is invoked when Rmail is invoked.

-- 
Marc



             reply	other threads:[~2024-11-21  8:06 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-21  8:06 Marc Coquand [this message]
2024-11-21  8:59 ` Open rmail summarized by specific label? Eli Zaretskii
     [not found] <87plmq4a4p.fsf@mccd.space>
2024-11-20 14:29 ` Eli Zaretskii
  -- strict thread matches above, loose matches on Subject: below --
2024-11-20 14:14 Marc Coquand
2024-11-19 10:56 Marc Coquand
2024-11-19 16:00 ` Eli Zaretskii

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=878qtd57tx.fsf@mccd.space \
    --to=marc@mccd.space \
    --cc=help-gnu-emacs@gnu.org \
    /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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).