On Mon, 27 Jan 2003, Andreas Aardal Hanssen wrote:
> OT, but why does the server return the FETCH update when no change has
> been made to the flags?
Well, first of all, it's quite possible that a change WAS made to the
flags (since, this particular messages started with \Seen set).
> "Note: regardless of whether or not the ".SILENT" suffix was
> used, the server SHOULD send an untagged FETCH response if a
> change to a message's flags from an external source is
> observed."
>
> Doesn't this imply that the server need not send the untagged FETCH if no
> change has been detected?
No (though I'm sure when I get this wrong Mark will correct me ;).
The full section says:
The STORE command alters data associated with a message in the
mailbox. Normally, STORE will return the updated value of the
data with an untagged FETCH response. A suffix of ".SILENT" in
the data item name prevents the untagged FETCH, and the server
SHOULD assume that the client has determined the updated value
itself or does not care about the updated value.
I read this to say "unless .SILENT is given, return the updated flags"
Note: regardless of whether or not the ".SILENT" suffix was
used, the server SHOULD send an untagged FETCH response if a
change to a message's flags from an external source is
observed. The intent is that the status of the flags is
determinate without a race condition.
This section says, "even if .SILENT is given, if some other IMAP session
changed the flags, you need to tell the client about it."
Note that "external source" implies that this isn't limited to other IMAP
sessions, just things that the client can't discern from the current IMAP
session.
-Rob
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Rob Siemborski | Andrew Systems Group * Research Systems Programmer
PGP:0x5CE32FCC | Cyert Hall 207 * [EMAIL PROTECTED] * 412.268.7456
-----BEGIN GEEK CODE BLOCK----
Version: 3.12
GCS/IT/CM/PA d- s+: a-- C++++$ ULS++++$ P+++$ L+++(++++) E W+ N o? K-
w O- M-- V-- PS+ PE++ Y+ PGP+ t+@ 5+++ R@ tv-@ b+ DI+++ G e h r- y?
------END GEEK CODE BLOCK-----