Re: [Imap-protocol] PERMANENTFLAGS \* and server behavior with \ANYFOO flag.

Dave Cridland <[email protected]>
Newsgroups gmane.mail.imap.general
Message-ID <CAKHUCzz=-kCLAmzswJeujL-ox+Y_GA+raDXXN9LANkC5ViBLNg@mail.gmail.com>
On Sat, Aug 10, 2013 at 10:05 PM, Gilles LAMIRAL <[email protected]
> wrote:

> OK [PERMANENTFLAGS (\Answered \Deleted \Draft \Flagged \Seen $Forwarded
> $MDNSent Forwarded NULL \*)] junk-related flags are not permanent"
>
> So Zimbra honors the \* flags meaning any new keyword creation is allowed.
>
> But a client command like the following
>
>   APPEND INBOX (\Seen \ATTACHED) "03-Jul-2013 15:02:40 -0400" {51806}':
>
> generates an error from Zimbra
>
>   BAD parse error: invalid flag: \ATTACHED
>
> I understand \ATTACHED is not a keyword, it is a \flag,
>

No, it's not. Page 86 shows that flags beginning "\" are enumerated, for
example. Elsewhere (§2.3.2) it discussed that these are system flags, and
defined within RFC 3501.

And will is shall, shall is must in RFC vocabulary:
> http://www.ietf.org/rfc/rfc2119.txt
>
>
Will is not SHALL, will is a statement of fact...


> What do other imap servers do?
> Are there servers accepting \ANYFOO flag?
> >From a migration point of view (imapsync), does the migrate tool have to
> filter flags like \FOO
> or should it try to sync it?
>
>
It should ignore it and not pass it through, or else drop the leading "\".

IMAP RFC http://tools.ietf.org/html/rfc3501 full quote of PERMANENTFLAGS
>
> PERMANENTFLAGS
>
>          Followed by a parenthesized list of flags, indicates which of
>          the known flags the client can change permanently.  Any flags
>          that are in the FLAGS untagged response, but not the
>          PERMANENTFLAGS list, can not be set permanently.  If the client
>          attempts to STORE a flag that is not in the PERMANENTFLAGS
>          list, the server will either ignore the change or store the
>          state change for the remainder of the current session only.
>          The PERMANENTFLAGS list can also include the special flag \*,
>          which indicates that it is possible to create new keywords by
>          attempting to store those flags in the mailbox.
>

Right, and here it says "keywords".

>From §2.3.2, para 3:

    A keyword is defined by the server implementation.  Keywords do not
   begin with "\".  Servers MAY permit the client to define new keywords
   in the mailbox (see the description of the PERMANENTFLAGS response
   code for more information).

Dave.

_______________________________________________
Imap-protocol mailing list
[email protected]
http://mailman2.u.washington.edu/mailman/listinfo/imap-protocol
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.