Skip to content

Commit

Permalink
Reimplemented -f for pilerimport (#221)
Browse files Browse the repository at this point in the history
Signed-off-by: Janos SUTO <sj@acts.hu>
  • Loading branch information
jsuto authored Jan 1, 2025
1 parent 874c0a6 commit ef1343e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/import_imap.c
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,13 @@ struct FolderList* list_folders_curl(CURL *curl, struct data *data){
char buf[MAXBUFSIZE];
char *p = chunk.memory;

if(data->import->folder_imap){
char tmpbuf[SMALLBUFSIZE];

snprintf(tmpbuf, sizeof(tmpbuf)-1, "* LIST (\\HasNoChildren) \".\" \"%s\"\r\n", data->import->folder_imap);
p = tmpbuf;
}

do {
memset(buf, 0, sizeof(buf));
p = split(p, '\n', buf, sizeof(buf)-1, &rc);
Expand Down

0 comments on commit ef1343e

Please sign in to comment.