Revision 3192 libsylph/imap.c

View differences:

imap.c
487 487

  
488 488
	if (REMOTE_FOLDER(folder)->remove_cache_on_destroy) {
489 489
		gchar *dir;
490
		gchar *server;
490 491

  
491 492
		dir = folder_get_path(folder);
492 493
		if (is_dir_exist(dir))
493 494
			remove_dir_recursive(dir);
494 495
		g_free(dir);
495 496

  
497
		server = uriencode_for_filename(folder->account->recv_server);
496 498
		dir = g_strconcat(get_imap_cache_dir(), G_DIR_SEPARATOR_S,
497
				  folder->account->recv_server, NULL);
499
				  server, NULL);
498 500
		if (is_dir_exist(dir))
499 501
			g_rmdir(dir);
500 502
		g_free(dir);
503
		g_free(server);
501 504
	}
502 505

  
503 506
	folder_remote_folder_destroy(REMOTE_FOLDER(folder));

Also available in: Unified diff