]> code.citadel.org Git - citadel.git/blobdiff - citadel/citadel.c
Amended the MSGP command to provide a way for the client to
[citadel.git] / citadel / citadel.c
index 560bd55a4b11dc397440fd3c4e74269b381d2c0b..8fe6b3a476bcceebe5c80fb9dd1b1599b2afe5c8 100644 (file)
@@ -1153,7 +1153,14 @@ void get_serv_info(CtdlIPC *ipc, char *supplied_hostname)
         * it to the reader's screen width, but since our HTML-to-text parser
         * isn't really all that great, it's probably better to just go with
         * the plain text when we have it available.
+        *
+        * We also indicate to the server that we prefer to decode Base64 and
+        * quoted-printable on the client side.
         */
+       if ((CtdlIPCSpecifyPreferredFormats(ipc, buf, "dont_decode") / 100 ) != 2) {
+               scr_printf("ERROR: Extremely old server; MSG4 framework not supported.\n");
+               logoff(ipc, 0);
+       }
        if ((CtdlIPCSpecifyPreferredFormats(ipc, buf, "text/plain|text/html") / 100 ) != 2) {
                scr_printf("ERROR: Extremely old server; MSG4 framework not supported.\n");
                logoff(ipc, 0);