From 9f025c9292b22b8590a9d2e1a5d53808fe182f80 Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Sat, 10 Jan 2009 21:51:01 +0000 Subject: [PATCH] * Add text/calendar to the MSGP list. Also added some DLAT debugging. --- webcit/calendar.c | 2 +- webcit/messages.c | 2 ++ webcit/serv_func.c | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/webcit/calendar.c b/webcit/calendar.c index 455173f6b..d50e1f77e 100644 --- a/webcit/calendar.c +++ b/webcit/calendar.c @@ -280,7 +280,7 @@ void cal_process_object(StrBuf *Target, void cal_process_attachment(wc_mime_attachment *Mime) { icalcomponent *cal; - + cal = icalcomponent_new_from_string(ChrPtr(Mime->Data)); FlushStrBuf(Mime->Data); if (cal == NULL) { diff --git a/webcit/messages.c b/webcit/messages.c index 3fce730f3..96510d188 100644 --- a/webcit/messages.c +++ b/webcit/messages.c @@ -1574,8 +1574,10 @@ void MimeLoadData(wc_mime_attachment *Mime) char buf[SIZ]; off_t bytes; /* TODO: is there a chance the contenttype is different to the one we know? */ + lprintf(9, "< DLAT %ld|%s\n", Mime->msgnum, ChrPtr(Mime->PartNum)); // FIXME temporary, remove serv_printf("DLAT %ld|%s", Mime->msgnum, ChrPtr(Mime->PartNum)); serv_getln(buf, sizeof buf); + lprintf(9, "> %s\n", buf); // FIXME temporary, remove if (buf[0] == '6') { bytes = extract_long(&buf[4], 0); diff --git a/webcit/serv_func.c b/webcit/serv_func.c index 5592ca8c0..c0614aa2c 100644 --- a/webcit/serv_func.c +++ b/webcit/serv_func.c @@ -29,7 +29,7 @@ void get_serv_info(char *browser_host, char *user_agent) serv_getln(buf, sizeof buf); /** Tell the server what kind of richtext we prefer */ - serv_puts("MSGP text/html|text/plain"); + serv_puts("MSGP text/calendar|text/html|text/plain"); serv_getln(buf, sizeof buf); /* -- 2.30.2