diff --git a/src/pilerimport.c b/src/pilerimport.c index 9471f6ae..0ce0d6c3 100644 --- a/src/pilerimport.c +++ b/src/pilerimport.c @@ -264,6 +264,8 @@ int import_from_imap_server(char *server, char *username, char *password, int po struct node *q; + inithash(data->imapfolders); + snprintf(port_string, sizeof(port_string)-1, "%d", port); memset(&hints, 0, sizeof(hints)); @@ -297,8 +299,6 @@ int import_from_imap_server(char *server, char *username, char *password, int po } - inithash(data->imapfolders); - rc = list_folders(sd, &seq, use_ssl, data); if(rc == ERR) goto ENDE_IMAP;