]> code.citadel.org Git - citadel.git/blobdiff - webcit-ng/messages.c
How about that ... we're now correctly handling the reply-references and carrying...
[citadel.git] / webcit-ng / messages.c
index 5ecfc165fdf39d4083aab4db1192a72b03e534cd..8412717965027f60e171042a1397bf8420aed1e4 100644 (file)
@@ -146,7 +146,13 @@ void dav_put_message(struct http_transaction *h, struct ctdlsession *c, char *eu
                return;
        }
 
-       ctdl_printf(c, "ENT0 1|||4|||1|");      // This protocol syntax will give us metadata back after upload
+       char *wefw = get_url_param(h, "wefw");  // references
+       if (!wefw) wefw = "";
+       char *subj = get_url_param(h, "subj");  // subject
+       if (!subj) subj = "";
+
+       // Mode 4 will give us metadata back after upload
+       ctdl_printf(c, "ENT0 1|||4|%s||1|||||%s|", subj, wefw);
        ctdl_readline(c, buf, sizeof buf);
        if (buf[0] != '8') {
                h->response_code = 502;