emacs-devel
[Top][All Lists]
Advanced

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

Unseen attribute doesn't get saved in rmail


From: Andrea G. Monaco
Subject: Unseen attribute doesn't get saved in rmail
Date: Thu, 31 Dec 2020 15:03:54 +0100

Hello everyone,


there's a behavior in rmail I can't quite understand.
I never delete my mail, I just read it. So here's the problem: when some
messages are read and marked as such, the modified flag of the RMAIL
buffer apparently stays cleared, so Emacs doesn't offer to save it when I
close the editor.
This way I lose track of read mail every time.

I think these are the relevant lines in rmail.el inside
rmail-show-message-1: 


  ;; Mark the message as seen, but preserve buffer modified flag.
  (let ((modiff (buffer-modified-p)))
    (rmail-set-attribute rmail-unseen-attr-index nil)
    (unless modiff
      (restore-buffer-modified-p modiff)))


So the modified flag is explicitly cleared after reading a new message.
Is there some reason I can't see for this behavior? Maybe we could add a
configuration option to let the user choose.


Let me know,
Andrea Monaco



reply via email to

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