alienscience / imapsrv

An IMAP server written in Go
BSD 3-Clause "New" or "Revised" License
48 stars 9 forks source link

List command does not support unquoted wildcards #17

Closed alienscience closed 9 years ago

alienscience commented 9 years ago

When trying to use an unquoted wildcard the lexer reports and error:

4 LIST / %
* BYE Expected ASTRING

This is because the lexer currently handles quoted strings, literals and then defaults to astring. The default in the lexer needs to change according to what is being parsed e.g:

  1. tags - default to a tag string that is an astring without '+' characters
  2. mailbox in the list command - default to a list-mailbox which is an astring with wildcards and response specials.

Fixing this bug will probably need changes to how the parser calls the lexer.

alienscience commented 9 years ago

The FETCH command requires this bug to be fixed so that sequence sets are not parsed as astrings. I have assigned myself.