unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: "Andrea G. Monaco" <andrea.monaco@autistici.org>
Cc: emacs-devel@gnu.org
Subject: Re: Unseen attribute doesn't get saved in rmail
Date: Sat, 09 Jan 2021 09:44:22 +0200	[thread overview]
Message-ID: <83mtxiimg9.fsf@gnu.org> (raw)
In-Reply-To: <87eeivunad.fsf@autistici.org> (andrea.monaco@autistici.org)

> From: "Andrea G. Monaco" <andrea.monaco@autistici.org>
> Date: Fri, 08 Jan 2021 22:33:14 +0100
> 
> 
>   > Why does it matter for your purposes?
> 
> I usually don't delete my mail, I just read it, so it's important for me
> to keep track of read mail. For this use case, which I think is pretty
> common, clearing the unseen flag in a message should set the modified
> flag for the RMAIL buffer.
> 
> Otherwise I have to manually set the flag in order to save the file, if
> I understand correctly. That seems like an unnecessary workaround.

That's not what I asked about.  You are describing your original
motivation for raising this issue, but I was specifically asking about
this part of your response to my proposal of a solution:

> 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.

I'm asking why is it important for your purposes to know whether the
mail was read for the first time or not.  Because if it isn't very
important, the solution I proposed should work for you.

In general, your use case is very unusual one, so much so that I was
originally certain that's not the behavior I see, because I never read
any batch of new messages without deleting or filing away at least one
of them.  That's the reason Rmail doesn't already have the feature you
want: I guess no one else uses it as you do.  (It means, btw, that
your inbox is growing without limitation, which is also not a good
idea.)



  reply	other threads:[~2021-01-09  7:44 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-08 21:33 Unseen attribute doesn't get saved in rmail Andrea G. Monaco
2021-01-09  7:44 ` Eli Zaretskii [this message]
  -- 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-02 20:05 Andrea G. Monaco
2021-01-02 20:20 ` 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=83mtxiimg9.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=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).