List Info

Thread: FLAGS reply




FLAGS reply
country flaguser name
Finland
2007-12-02 01:35:50
I see that when adding a new keyword, most servers send:

* FLAGS (hello Answered Flagged Deleted Draft Seen)
* OK [PERMANENTFLAGS (hello * Answered Flagged Deleted
Draft Seen)] Permanent flags

before sending the FETCH FLAGS:

* 1 FETCH (FLAGS (hello))

Is this really useful/required? RFC seems to say it's
supposed to be
sent only on SELECT.


_______________________________________________
Imap-protocol mailing list
Imap-protocolu.washington.edu
https://mailman1.u.washington.edu/mailman/listin
fo/imap-protocol
Re: FLAGS reply
country flaguser name
United States
2007-12-02 01:42:47
On Sun, 2 Dec 2007, Timo Sirainen wrote:
> I see that when adding a new keyword, most servers
send:
> * FLAGS (hello Answered Flagged Deleted Draft
Seen)
> * OK [PERMANENTFLAGS (hello * Answered Flagged
Deleted Draft Seen)] Permanent flags
> before sending the FETCH FLAGS:
> * 1 FETCH (FLAGS (hello))

This confirms the creation of the flag and whether or not it
is a 
permanent flag.  It needs to be sent.

> Is this really useful/required? RFC seems to say it's
supposed to be
> sent only on SELECT.

Any response can be sent at any time.

-- Mark --

http://panda.com/mrc
Democracy is two wolves and a sheep deciding what to eat for
lunch.
Liberty is a well-armed sheep contesting the vote.
_______________________________________________
Imap-protocol mailing list
Imap-protocolu.washington.edu
https://mailman1.u.washington.edu/mailman/listin
fo/imap-protocol

Re: FLAGS reply
country flaguser name
Finland
2007-12-02 01:53:43
On Sat, 2007-12-01 at 23:42 -0800, Mark Crispin wrote:
> On Sun, 2 Dec 2007, Timo Sirainen wrote:
> > I see that when adding a new keyword, most servers
send:
> > * FLAGS (hello Answered Flagged Deleted Draft
Seen)
> > * OK [PERMANENTFLAGS (hello * Answered Flagged
Deleted Draft Seen)] Permanent flags
> > before sending the FETCH FLAGS:
> > * 1 FETCH (FLAGS (hello))
> 
> This confirms the creation of the flag and whether or
not it is a 
> permanent flag.  It needs to be sent.

How about when keywords are removed? Is this valid:

1 fetch 1 flags
* 1 FETCH (FLAGS (Seen hello))
1 ok
[[ here another connection expunges message 1 ]]
2 fetch 2 flags
* 2 FETCH (FLAGS ())
* FLAGS (Answered Flagged Deleted Draft Seen)
* OK [PERMANENTFLAGS (* Answered Flagged Deleted Draft
Seen)] Permanent flags
2 ok

This session still sees that message 1 contains
"hello", but it's no
longer in FLAGS. Should the server instead have sent:

* 1 FETCH (FLAGS (Seen))
* 2 FETCH (FLAGS ())
* FLAGS ...
* OK [PERMANENTFLAGS ..

(Or just avoided sending FLAGS/PERMANENTFLAGS until message
1 was seen
expunged.)

_______________________________________________
Imap-protocol mailing list
Imap-protocolu.washington.edu
https://mailman1.u.washington.edu/mailman/listin
fo/imap-protocol
Re: FLAGS reply
country flaguser name
United States
2007-12-02 02:11:53
On Sun, 2 Dec 2007, Timo Sirainen wrote:
> How about when keywords are removed?

There is no defined mechanism in IMAP to remove keywords. 
Every time the 
question came up the result was a punt.

Although it makes sense to send a FLAGS/PERMANENTFLAGS
update to remove a 
keyword, I do not recommend doing so for the following
reasons:
  (1) It may be a keyword which the user intends to use
later.  Note that
      only STORE is defined to create keywords, and some
servers won't in
      APPEND and COPY.
  (2) Clients probably are totally unprepared to handle
keywords vanishing
      in a session (and certainly would be for a keyword
that is used in
      an existing message).

If there's a need to clean up old unused keywords, do so in
a new session. 
But you should avoid doing so without a definite need due to
reason (1) 
above.

-- Mark --

http://panda.com/mrc
Democracy is two wolves and a sheep deciding what to eat for
lunch.
Liberty is a well-armed sheep contesting the vote.
_______________________________________________
Imap-protocol mailing list
Imap-protocolu.washington.edu
https://mailman1.u.washington.edu/mailman/listin
fo/imap-protocol

[1-4]

about | contact  Other archives ( Real Estate discussion Medical topics )