List Info

Thread: Parsing resp-text




Parsing resp-text
user name
2007-07-27 20:30:04
I'm working on some IMAP client code, and hit the following
portion of
ABNF grammer in RFC 3501:

resp-text = ["[" resp-text-code "]" SP]
text

Should the following lines be considered protocol errors?

* NO [UNSEEN]
* NO [TRYCREATE
* NO [FOO(BAR)]

The resp-text rule says "[" must have a matching
"]" and the
resp-text-code rule says UNSEEN must be followed by a
nz-number and
the the first word after the [ must be an atom, so they
would appear
to be errors.

However, the first part of resp-text is optional, so should
these just
be considered to have text ("[UNSEEN]",
"[TRYCREATE", and "[FOO(BAR)]"
and no response code?

Thanks.
Peter
_______________________________________________
Imap-protocol mailing list
Imap-protocolu.washington.edu
https://mailman1.u.washington.edu/mailman/listin
fo/imap-protocol

Re: Parsing resp-text
country flaguser name
United States
2007-07-27 22:37:50
On Fri, 27 Jul 2007, Peter Bowen wrote:
> However, the first part of resp-text is optional, so
should these just
> be considered to have text ("[UNSEEN]",
"[TRYCREATE", and "[FOO(BAR)]"
> and no response code?

Yes.

-- Mark --

http://staff.washingt
on.edu/mrc
Science does not emerge from voting, party politics, or
public debate.
Si vis pacem, para bellum.
_______________________________________________
Imap-protocol mailing list
Imap-protocolu.washington.edu
https://mailman1.u.washington.edu/mailman/listin
fo/imap-protocol

[1-2]

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