[Evolution] Re: [Evolution-hackers] Why are every messages marked read ?



(i sent this to jeff instead of lists, could we please have a Reply-To:
set?)

no, not all servers support custom flags.  similar to the authentication
method

yes, a local cache would definate defeat the purpose :) *grins*

you are able to get all the headers without marking them as read.  or maybe
what outlook [express] / netscape <--> exchange / other imap server do is
they get all the messages and remark them as unread until the client knows
the user reads them?  sounds too convoluted, so that doesn't seem right

what about PEEK??  doesn't that let you see what is there without changing
flags?

----- Original Message -----
From: "Jeffrey Stedfast" <fejj helixcode com>
To: <evolution helixcode com>; <evolution-hackers helixcode com>
Sent: Thursday, August 24, 2000 2:23 PM
Subject: Re: [Evolution-hackers] Why are every messages marked read ?


Okay, let me explain how IMAP works.

EXAMINE is only for selecting folders read-only so that you can get a
message count, etc - it has nothing to do with downloading headers.

Now, on to more exciting news... FETCH with any parameters will
automagically mark the message as 'read' on the IMAP server, there's nothing
Evolution can do about that.
What *might* be possible is to use ENVELOPE instead of FETCH, but I don't
think ENVELOPE will give us all the info we need. I'll have to check the
RFCs when I get back to Boston :)
Another possibility is to pray that the IMAP server allows custom flags to
be set, in which case we can have our own read/unread" flag that we can
set/unset as we wish. I think this'd be the best solution, but if I recall
correctly, this isn't supported on all IMAP server implementations.

I suppose one last option might be to keep a local cache? I dunno...
nah, that wouldn't work too well, that'd defeat the whole purpose of IMAP

okay, well I'm off - I will be happy to take suggestions (and/or patches)

Jeff

On Tue, Aug 22, 2000 at 05:29:51PM +0100, Tony Hoyle wrote:
Mário Filipe wrote:

On Tue, 22 Aug 2000 16:08:31 NotZed wrote:

The process of getting the headers, which evolution uses to display
the message list, the server marks the messages as read ...

*shrug*

So its imap.

No it's evolution.

Depending on which command you use to get the headers, imap will
automatically set
the message read.  I don't have the docs handy at the moment but IIRC
it's 'READ' to
get the headers/body and set the 'read' flag, and 'EXAMINE' to get the
headers without
setting the 'read' flag.

(It's a month or so since I did any IMAP so I may be off base with the
command names).

Tony

_______________________________________________
evolution-hackers maillist  -  evolution-hackers helixcode com
http://lists.helixcode.com/mailman/listinfo/evolution-hackers

_______________________________________________
evolution-hackers maillist  -  evolution-hackers helixcode com
http://lists.helixcode.com/mailman/listinfo/evolution-hackers






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