final imap folder fix

Change-Id: I8997496cf061b1b05c3992c02769c5280473872e
Signed-off-by: SJ <sj@acts.hu>
This commit is contained in:
SJ 2016-12-20 20:14:05 +01:00
parent 5172bfd7c1
commit 12292111a8

View File

@ -443,6 +443,12 @@ int list_folders(int sd, int *seq, int use_ssl, char *folder_name, struct __data
// trim the "A3 OK LIST completed" trailer off // trim the "A3 OK LIST completed" trailer off
if(p) *p = '\0'; if(p) *p = '\0';
// No folder list, so this must be a leaf folder
if(strlen(buf) == 0){
addnode(data->imapfolders, folder_name);
return OK;
}
memset(attrs, 0, sizeof(attrs)); memset(attrs, 0, sizeof(attrs));
p = buf; p = buf;