help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Open rmail summarized by specific label?


From: Eli Zaretskii
Subject: Re: Open rmail summarized by specific label?
Date: Thu, 21 Nov 2024 10:59:37 +0200

> From: Marc Coquand <marc@mccd.space>
> Date: Thu, 21 Nov 2024 10:06:50 +0200
> 
> 
> > 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.

What's to prevent your hook from using rmail-set-attribute to "unsee"
the message shown by rmail, before you perform the summary?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]