void json_render_one_message(struct http_transaction *h, struct ctdlsession *c, long msgnum);
void upload_files(struct http_transaction *h, struct ctdlsession *c);
struct uploaded_file pop_upload(char *id);
+void json_msglist(struct http_transaction *h, struct ctdlsession *c, char *range);