* Add text/calendar to the MSGP list. Also added some DLAT debugging.
authorArt Cancro <ajc@citadel.org>
Sat, 10 Jan 2009 21:51:01 +0000 (21:51 +0000)
committerArt Cancro <ajc@citadel.org>
Sat, 10 Jan 2009 21:51:01 +0000 (21:51 +0000)
webcit/calendar.c
webcit/messages.c
webcit/serv_func.c

index 455173f6bd173179613069de4421cfc4506c5493..d50e1f77e8ecb7ec93454d70becacd36dc00575f 100644 (file)
@@ -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) {
index 3fce730f34356a3d1a5063045030cdf6b02fa608..96510d1883e2bd04b1a7db12da708306b8b90e8b 100644 (file)
@@ -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);
 
index 5592ca8c0418eaaf85ab22d474fd5da636e78f3a..c0614aa2c10a2c286ff709470f499a2c86840204 100644 (file)
@@ -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);
 
        /*