* Open rmail summarized by specific label?
@ 2024-11-19 10:56 Marc Coquand
2024-11-19 16:00 ` Eli Zaretskii
0 siblings, 1 reply; 6+ messages in thread
From: Marc Coquand @ 2024-11-19 10:56 UTC (permalink / raw)
To: help-gnu-emacs
Hiya,
Is there a way to open rmail summarized by a specific label?
I'd like to open it and only display unseen messages, which as I
understand it is the unseen label.
--
Marc
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Open rmail summarized by specific label?
2024-11-19 10:56 Marc Coquand
@ 2024-11-19 16:00 ` Eli Zaretskii
0 siblings, 0 replies; 6+ messages in thread
From: Eli Zaretskii @ 2024-11-19 16:00 UTC (permalink / raw)
To: help-gnu-emacs
> From: Marc Coquand <marc@mccd.space>
> Date: Tue, 19 Nov 2024 12:56:28 +0200
>
> Is there a way to open rmail summarized by a specific label?
>
> I'd like to open it and only display unseen messages, which as I
> understand it is the unseen label.
What do you mean by "open rmail"?
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Open rmail summarized by specific label?
@ 2024-11-20 14:14 Marc Coquand
0 siblings, 0 replies; 6+ messages in thread
From: Marc Coquand @ 2024-11-20 14:14 UTC (permalink / raw)
To: help-gnu-emacs
> What do you mean by "open rmail"?
Basically launching rmail and seeing my email, I.E. ~rmail-input
rmail-file-name~.
(Sorry if I spammed you Eli, I used the reply button in the archive and
didn't realize it only replies to an individual rather than the thread)
--
Marc
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Open rmail summarized by specific label?
[not found] <87plmq4a4p.fsf@mccd.space>
@ 2024-11-20 14:29 ` Eli Zaretskii
0 siblings, 0 replies; 6+ messages in thread
From: Eli Zaretskii @ 2024-11-20 14:29 UTC (permalink / raw)
To: help-gnu-emacs
> From: Marc Coquand <marc@mccd.space>
> Date: Wed, 20 Nov 2024 09:50:14 +0200
>
>
> > What do you mean by "open rmail"?
>
> Basically launching rmail and seeing my email, I.E. ~rmail-input rmail-file-name~
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.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Open rmail summarized by specific label?
@ 2024-11-21 8:06 Marc Coquand
2024-11-21 8:59 ` Eli Zaretskii
0 siblings, 1 reply; 6+ messages in thread
From: Marc Coquand @ 2024-11-21 8:06 UTC (permalink / raw)
To: help-gnu-emacs
> 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
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Open rmail summarized by specific label?
2024-11-21 8:06 Marc Coquand
@ 2024-11-21 8:59 ` Eli Zaretskii
0 siblings, 0 replies; 6+ messages in thread
From: Eli Zaretskii @ 2024-11-21 8:59 UTC (permalink / raw)
To: help-gnu-emacs
> 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?
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2024-11-21 8:59 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-20 14:14 Open rmail summarized by specific label? Marc Coquand
-- strict thread matches above, loose matches on Subject: below --
2024-11-21 8:06 Marc Coquand
2024-11-21 8:59 ` Eli Zaretskii
[not found] <87plmq4a4p.fsf@mccd.space>
2024-11-20 14:29 ` Eli Zaretskii
2024-11-19 10:56 Marc Coquand
2024-11-19 16:00 ` Eli Zaretskii
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.