return;
}
- // DOOOOOO ITTTTT!!!
-
+ // Now perform the requested operation.
if (!strcasecmp(h->method, "DELETE")) {
dav_delete_message(h, c, msgnum);
}
dav_move_or_copy_message(h, c, msgnum, DAV_COPY);
}
else {
- do_404(h); // Got this far but the method made no sense? Bummer.
+ do_404(h); // We should never get here, but if we do, a 404 error is clean.
}
-
}
return;
}
- do_404(h); // future implementations like CardDAV will require code paths here
+ do_404(h); // future implementations like CardDAV will require code paths here
}
syslog(LOG_DEBUG, "Client PROPFIND requested depth: %d", dav_depth);
StrBuf *Buf = NewStrBuf();
- StrBufAppendPrintf(Buf, "<?xml version=\"1.0\" encoding=\"utf-8\"?>"
- "<D:multistatus " "xmlns:D=\"DAV:\" " "xmlns:C=\"urn:ietf:params:xml:ns:caldav\"" ">");
+ StrBufAppendPrintf(Buf,
+ "<?xml version=\"1.0\" encoding=\"utf-8\"?>"
+ "<D:multistatus "
+ "xmlns:D=\"DAV:\" "
+ "xmlns:C=\"urn:ietf:params:xml:ns:caldav\""
+ ">"
+ );
// Transmit the collection resource
StrBufAppendPrintf(Buf, "<D:response>");