Malformed XLIST replies

Timo Sirainen timo at sirainen.com
Mon Jun 20 22:12:55 UTC 2022


On 20. Jun 2022, at 20.23, Bogdan Szczurek <thebodzio at gmail.com> wrote:
> 
> When XLIST is used to get the list of the folders, I get, for example:
> 
> 3 XLIST "" "*"
> * XLIST (\HasNoChildren \) "." "Archive"
> * XLIST (\HasNoChildren \) "." "Courses"
..
> Notice, how in the XLIST example, every item has an additional “empty” flag (“\”). This part causes libetpan to fail. While ignoring the problem as a library's problem would be perfectly understandable, I think it should be also considered if something shouldn't be done on Dovecot's end. Granted, XLIST has been long depreceated, however it still is implemented and it should be implemented properly. Perhaps I'm mistaken, but I failed to find any mention of a thing like “empty flag”. It might not be prohibited, but it strikes me as something bizarre.
> 
> I am unable to get the information about the Dovecot version used by home.pl, but I suspect this problem may still be present up to the newest version. Also, if someone is willing to take a closer look at the problem, I can provide you with an email account for testing purposes.

I don't know what home.pl uses, but Dovecot's XLIST command is simply an alias for the LIST command. There are no differences at all in the output. Dovecot even outputs untagged LIST replies rather than XLIST replies.




More information about the dovecot mailing list