Bug in TIdIMAP4.ListMailBoxes() #329
Labels
Element: IMAP4
Issues related to TIdIMAP4 and TIdIMAP4Server
Status: Review Needed
Issue needs further review to decide next status
Type: Bug
Issue is a bug in existing code
When
ListMailBoxes()
is executed on a Lotus Notes server, lines are returned that may look like this:In the resulting list this is stored as
The IMAP server's response is valid according to the protocol.
There are two "failing" procedures:
InternalParseListResult
andParseIntoBrackettedQuotedAndUnquotedParts
.Shouldn't
ParseIntoBrackettedQuotedAndUnquotedParts
simply regard everything after the delimiter as a Folder path?InternalParseListResult
doesn't check idx 2 as Delimiter, instead it takes the one to last entry and takes the first character of that. In the example, the delimiter would become 'F'. It also decides that the last index is the folder name, so the folder ends up as '1' or '2'. It should take the delimiter fromLSlRetrieve[2]
and regardLSlRetrieve[3]
and higher as the folder name.When
ListMailBoxes()
is executed on MS Outlook server, everything works as expected, as that returns lines like this:The text was updated successfully, but these errors were encountered: