We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 079167e commit e14bdefCopy full SHA for e14bdef
lib/net/imap/response_parser.rb
@@ -1761,10 +1761,10 @@ def enable_data
1761
UntaggedResponse.new label("ENABLED"), capability__list, @str
1762
end
1763
1764
- # As a workaround for buggy servers, allow a trailing SP:
1765
- # *(SP capability) [SP]
+ # As a workaround for buggy servers, allow extra spaces:
+ # *(SP *SP capability) *SP
1766
def capability__list
1767
- list = []; while SP? && (capa = capability?) do list << capa end; list
+ list = []; while accept_spaces && (capa = capability?) do list << capa end; list
1768
1769
1770
alias resp_code__capability capability__list
0 commit comments