From 74ab6f019374235868deac87a23f87920b218152 Mon Sep 17 00:00:00 2001 From: SJ Date: Thu, 26 Sep 2013 23:12:29 +0200 Subject: [PATCH] pilerimport fix --- src/pilerimport.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;