StrBuf *fetch_ical(struct ctdlsession *c, long msgnum);
void caldav_response(struct http_transaction *h, struct ctdlsession *c, StrBuf *ReportOut, StrBuf *ThisHref);
void caldav_report(struct http_transaction *h, struct ctdlsession *c);
-void calendar_msglist(struct http_transaction *h, struct ctdlsession *c, char *range);
int ctdl_read_binary(struct ctdlsession *ctdl, char *buf, int bytes_requested);
int ctdl_readline(struct ctdlsession *ctdl, char *buf, int maxbytes);
StrBuf *ctdl_readtextmsg(struct ctdlsession *ctdl);