On Fri, 2004-01-16 at 13:18, per hygum wrote:
>  Client->Server: 6 FETCH 19 (UID RFC822.SIZE BODY[]<0.4967>)
> 
>  Client<-Server: "I get the data back I request BUT also additional
>  data. This is 'FLAGS (\Recent \Seen)' data". It is contained in the
>  same untagged response and not in a seperate untagged response.
> 
> The peculiar thing is that when I execute the exactly same command twice I get the 
> FLAGS added in the first response but not the second time. It means the server adds 
> FLAGS the first time a newly arrived message is touched.
> 
> I think this is a IMAP server bug ?

No, fetching BODY[] sets \Seen flag for the message so server tells you
that it did that. Second time it doesn't, because the message is already
\Seen. If you changed it unseen, it would again return the FLAGS
(\Seen). If you don't want this, use BODY.PEEK[].

Also it sounds like you're implementing your client "badly". You should
rather send requests for IMAP server to return some items you wish for,
then just update your local cache based on whatever server sends you,
even if it sent more than you requested.

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to