OK, they do have a point about EXAMINE.  OfflineIMAP currently' doesn't
do that for performance reasons (it would have to re-SELECT the same
folder if it were to have to modify it later).  But it could.

The mechanics of handling \Recent are also not trivial but doable.

I'll go ahead and leave this open but I don't think I'll have time to
work on it soonish.

One other thing might be to suggest treating the absence of any flag as
"I've seen it" and (N or O) as "I've not seen it".

-- John

On Thu, Apr 21, 2005 at 11:14:32AM -0700, Andrew Pimlott wrote:
> On Mon, Apr 11, 2005 at 08:41:37AM -0500, John Goerzen wrote:
> > UW-IMAPd is known to do weird things like this, unfortunately.  I'd say
> > about 2/3 of the problems people have with OfflineIMAP are with UW-IMAPd
> > servers.
> 
> Ok, I've canned UW-IMAPd and installed dovecot.  (Actually, I think I
> made a dumb mistake configuring OfflineIMAP when I was using UW-IMAPd,
> but that's irrelevant now.)
> 
> > > Another problem with uw-imapd is that whenever I access a mailbox via
> > > IMAP, even if I do not save any changes, it saves the mbox changing
> > > message statuses from "N" to "O".  I would like to imapd to leave
> > > messages in the "N" status unless my mail client changes it.
> > 
> > This may or may not be possible, depending on your specific IMAP server.
> 
> I asked about this on the dovecot mailing list, and got an answer that
> is attached.
> 
> > offlineimap certainly takes every effort to avoid changing flags on
> > messages during a download, but some IMAP servers will treat any
> > download as a read.  In any case, once a message is read on a local
> > client, that does change a flag that OfflineIMAP will propogate back,
> > and it should result in the "N" and "O" being removed.  Alternatively,
> > if you use IMAP or OfflineIMAP clients for all your mailbox accesses,
> > you should have no trouble (IMAP does not differentiate between N and
> > O).
> 
> The issue is that the "N" versus "O" state is very meaningful to me.
> It's pretty important to the way I read mail that all messages I've
> never seen have the "N" state.  If I were to sync with OfflineIMAP, but
> then actually read my mail on the server, and all the "N"s were gone, it
> would bug me.
> 
> Andrew

> From: Chris Wakelin <[EMAIL PROTECTED]>
> Date: Wed, 20 Apr 2005 10:32:12 +0100 (GMT Daylight Time)
> Reply-To: [EMAIL PROTECTED]
> To: Andrew Pimlott <[EMAIL PROTECTED]>
> Cc: [EMAIL PROTECTED]
> Subject: Re: [Dovecot] message status changed from new to old on read
> 
> There are two relevant flags associated with a message in IMAP, "SEEN" 
> and "RECENT". "New" messages might be considered unread ones (don't 
> have the "SEEN" flag set) or "recent" ones.
> 
> The client gets to modify "SEEN", which it typically does when it reads 
> the message. The server is the only thing that can modify "RECENT", 
> which it does when it has notified a client that has "SELECT"-ed 
> (i.e. opened) the folder about new messages.
> 
> I assume "offlineimap" is behaving just like a normal client and 
> "SELECT"-ing the folder in order to download messages. If it doesn't 
> want to change the "RECENT" status, then it should use "EXAMINE" 
> (opens mailbox readonly) instead of "SELECT". Likewise, it shouldn't 
> set the "SEEN" flag unless it wants to signal that the message has been 
> read.
> 
> In other words, Dovecot is behaving correctly as far as I can tell, and 
> offlineimap is probably to blame. See RFC 3501 (e.g. 
> "http://rfc.net/rfc3501.html#s2.3.2.";) for details!
> 
> Best Wishes,
> Chris
> 
> On Tue, 19 Apr 2005 17:03:49 -0700 Andrew Pimlott <[EMAIL PROTECTED]> 
> wrote:
> 
> > Hi.  I'm new to IMAP, but just tried uw-imapd and then dovecot in
> > conjuction with offlineimap.  I'm using Debian package version 0.99.14-1
> > and have my mail in mbox format.
> > 
> > One of the first things that annoys me about both programs is that as
> > soon as you read a mailbox over imap, the imapd changes all "new"
> > messages to "old".  It seems to have the assumption that the IMAP client
> > is "reading" the messages, but particularly in the case of offlineimap,
> > this assumption is not justified:  I might not read the message on the
> > client on which I've just synced, I might read it on the server or
> > another client.  So I would like dovecot to leave the mailbox alone, and
> > leave it up to the client to write any changes to message status.  Is
> > there any option to dovecot that would accomplish this?
> 
> --+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+--
> Christopher Wakelin,                                [EMAIL PROTECTED]
> IT Services Centre, The University of Reading,       Tel: +44 (0)118 378 8439
> Whiteknights, Reading, RG6 2AF, UK                   Fax: +44 (0)118 975 3094



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to