From: "Andrea G. Monaco" <andrea.monaco@autistici.org>
To: emacs-devel@gnu.org
Subject: Re: Unseen attribute doesn't get saved in rmail
Date: Sat, 02 Jan 2021 21:05:26 +0100 [thread overview]
Message-ID: <87czyn6r5l.fsf@autistici.org> (raw)
> I think you can use rmail-show-message-hook to call a function that
> sets the buffer's modified flag, then reading a message will leave
> that set.
Thanks, I didn't know about that hook.
But I wonder if that workaround is enough: I saw that the hook is called
at the end of the function rmail-show-message-1, but after the snippet
that I posted the information I care about is lost: we don't know if the
mail was just read for the first time or not; so we can't set the
modified flag meaningfully.
Is that correct?
Andrea Monaco
next reply other threads:[~2021-01-02 20:05 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-01-02 20:05 Andrea G. Monaco [this message]
2021-01-02 20:20 ` Unseen attribute doesn't get saved in rmail Eli Zaretskii
-- strict thread matches above, loose matches on Subject: below --
2021-01-11 12:28 Andrea G. Monaco
2021-01-11 15:34 ` Eli Zaretskii
2021-01-08 21:33 Andrea G. Monaco
2021-01-09 7:44 ` Eli Zaretskii
2020-12-31 14:03 Andrea G. Monaco
2020-12-31 16:31 ` 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=87czyn6r5l.fsf@autistici.org \
--to=andrea.monaco@autistici.org \
--cc=emacs-devel@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.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
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).