RFC compliance.

Looking at the grammar, I don't see any reference of such a
syntax but there are a lot of similar examples into the RFC so
I guess it is allowed...

fixes #453
This commit is contained in:
Antoine Nguyen
2013-07-27 09:02:04 +02:00
parent b4e520d854
commit 9570e2dea0
+1 -1
View File
@@ -138,7 +138,7 @@ class BodyStructure(object):
class IMAPconnector(object):
__metaclass__ = ConnectionsManager
list_base_pattern = r'\((?P<flags>.*?)\) "(?P<delimiter>.*)" "(?P<name>[^"]*)"'
list_base_pattern = r'\((?P<flags>.*?)\) "(?P<delimiter>.*)" "?(?P<name>[^"]*)"?'
list_response_pattern_literal = re.compile(r'\((?P<flags>.*?)\) "(?P<delimiter>.*)" \{(?P<namelen>\d+)\}')
list_response_pattern = re.compile(list_base_pattern)
listextended_response_pattern = \