MBOX-Line: From tss at iki.fi  Mon Dec  3 17:19:41 2012
To: imap-protocol@u.washington.edu
From: Timo Sirainen <tss@iki.fi>
Date: Fri Jun  8 12:34:49 2018
Subject: [Imap-protocol] condstore mod-sequence 0
In-Reply-To: <CABHfyPRv5dojb7NUVjAVdpVsE+8EHqnvrn1cgwyV1FiwvOOgYg@mail.gmail.com>
References: <CABHfyPRv5dojb7NUVjAVdpVsE+8EHqnvrn1cgwyV1FiwvOOgYg@mail.gmail.com>
Message-ID: <E3EECF90-B68B-4BCF-88C1-8FEA6B5A7BBA@iki.fi>

On 4.12.2012, at 2.46, Johnathan Galton wrote:

> In section 3.3.1 of RFC 4551 it says for FETCH to only return messages where the mod-sequence of the message is "bigger than" that specified (i.e. ">").  However, it seems reasonable for clients to be able to say "FETCH ... (CHANGEDSINCE 0)" and retrieve *all* messages (AFAICT thunderbird does this initially), however 0 isn't "bigger than" any valid value that we may store for the mod-sequence of a message.

According to RFC 4551 ABNF it's illegal for client to send CHANGEDSINCE 0. It simply shouldn't include the CHANGESINCE parameter if it wants to fetch everything. It wouldn't be wrong for servers to simply reject this command with a BAD reply.


