mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-12-24 19:00:11 +01:00
src: imap folder fix
Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
parent
950211687f
commit
ac3ae0e2f3
@ -418,10 +418,10 @@ int list_folders(struct data *data){
|
||||
memset(buf, 0, len);
|
||||
|
||||
snprintf(tag, sizeof(tag)-1, "A%d", data->import->seq); snprintf(tagok, sizeof(tagok)-1, "A%d OK", (data->import->seq)++);
|
||||
if(data->import->folder_name == NULL)
|
||||
if(data->import->folder_imap == NULL)
|
||||
snprintf(puf, sizeof(puf)-1, "%s LIST \"\" \"*\"\r\n", tag);
|
||||
else
|
||||
snprintf(puf, sizeof(puf)-1, "%s LIST \"%s\" \"*\"\r\n", tag, data->import->folder_name);
|
||||
snprintf(puf, sizeof(puf)-1, "%s LIST \"%s\" \"*\"\r\n", tag, data->import->folder_imap);
|
||||
|
||||
write1(data->net, puf, strlen(puf));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user