Re: [Evolution] mark_seen confusion

On Tue, 2014-05-13 at 15:44 -0400, Carl Schaefer wrote:
it's been bothering me that simply visiting a new folder will mark a
message in that folder as "seen", so I wandered into
mail/e-mail-reader.c to see if anything could be done.

It's easy to prevent this by unsetting the Mark Messages Read box in
Mail Preferences. I always unset it and then explicitly mark messages as
read as I deal with them. Or is this not what you mean?

Note that Seen and Read are two different things. A message is Seen as
soon as it's reported by the IMAP server (other servers may be
different) even if you don't mark it as Read. This is how IMAP is
designed to behave.

This is in the EMailReaderPrivate structure, indicating that the
behavior that's bothering me isn't supposed to be happening:

        /* These flags work together to prevent message selection
         * restoration after a folder switch from automatically
         * marking the message as read.  We only want that to
         * happen when the -user- selects a message. */
        guint folder_was_just_selected : 1;
        guint restoring_message_selection : 1;
        guint avoid_next_mark_as_seen : 1;

This seems to be more for the Evolution Hackers list rather than this
one, however you haven't said exactly what you're trying to achieve.


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