]> code.citadel.org Git - citadel.git/blobdiff - citadel/server/modules/instmsg/serv_instmsg.c
citadel.h is now citadel_defs.h
[citadel.git] / citadel / server / modules / instmsg / serv_instmsg.c
index 1e2d0f04358295704b29f3570d46eb65b61be40c..9ac1a5e64741e6d087db460a20404363488f04d5 100644 (file)
@@ -26,7 +26,7 @@
 #include <limits.h>
 #include <libcitadel.h>
 #include "../../sysdep.h"
-#include "../../citadel.h"
+#include "../../citadel_defs.h"
 #include "../../server.h"
 #include "../../context.h"
 #include "../../citserver.h"
@@ -428,7 +428,7 @@ void flush_individual_conversation(struct imlog *im) {
                ), 0
        );
 
-       MsgBuf = StrBufRFC2047encodeMessage(im->conversation);
+       MsgBuf = StrBufQuotedPrintableEncode(im->conversation);
        FlushStrBuf(im->conversation);
        FullMsgBuf = NewStrBufPlain(NULL, StrLength(im->conversation) + 100);
 
@@ -558,15 +558,17 @@ void flush_conversations_to_disk(time_t if_older_than) {
 }
 
 
-
 void instmsg_timer(void) {
        flush_conversations_to_disk(300);       /* Anything that hasn't peeped in more than 5 minutes */
 }
 
+
 void instmsg_shutdown(void) {
        flush_conversations_to_disk(0);         /* Get it ALL onto disk NOW. */
 }
 
+
+// Initialization function, called from modules_init.c
 char *ctdl_module_init_instmsg(void) {
        if (!threading) {
                CtdlRegisterProtoHook(cmd_gexp, "GEXP", "Get instant messages");