folder trim fix

Change-Id: I3afce82b84bff4b8e24c52babf79666bfbc904b4
Signed-off-by: SJ <sj@acts.hu>
This commit is contained in:
SJ 2016-12-22 11:29:55 +01:00
parent 6d6004c9ab
commit 846acd9b6f

View File

@ -129,7 +129,7 @@ int process_imap_folder(int sd, int *seq, char *folder, char *main_folder, struc
if(data->recursive_folder_names == 1){ if(data->recursive_folder_names == 1){
// trim the main folder name from the stored value in folder table // trim the main folder name from the stored value in folder table
if(data->import->trim_folder_name == 1 && main_folder){ if(data->import->trim_folder_name == 1 && main_folder && strlen(main_folder) < strlen(folder)){
folder += strlen(main_folder); folder += strlen(main_folder);
} }