Revision 3192 libsylph/folder.c

View differences:

folder.c
1145 1145
			path = path_;
1146 1146
		}
1147 1147
	} else if (FOLDER_TYPE(folder) == F_IMAP) {
1148
		gchar *server;
1148 1149
		gchar *uid;
1149 1150

  
1150 1151
		g_return_val_if_fail(folder->account != NULL, NULL);
1152
		server = uriencode_for_filename(folder->account->recv_server);
1151 1153
		uid = uriencode_for_filename(folder->account->userid);
1152 1154
		path = g_strconcat(get_imap_cache_dir(),
1153
				   G_DIR_SEPARATOR_S,
1154
				   folder->account->recv_server,
1155
				   G_DIR_SEPARATOR_S, server,
1155 1156
				   G_DIR_SEPARATOR_S, uid, NULL);
1156 1157
		g_free(uid);
1158
		g_free(server);
1157 1159
	} else if (FOLDER_TYPE(folder) == F_NEWS) {
1160
		gchar *server;
1161

  
1158 1162
		g_return_val_if_fail(folder->account != NULL, NULL);
1163
		server = uriencode_for_filename(folder->account->nntp_server);
1159 1164
		path = g_strconcat(get_news_cache_dir(),
1160
				   G_DIR_SEPARATOR_S,
1161
				   folder->account->nntp_server,
1162
				   NULL);
1165
				   G_DIR_SEPARATOR_S, server, NULL);
1166
		g_free(server);
1163 1167
	} else
1164 1168
		path = NULL;
1165 1169

  

Also available in: Unified diff