#include "imap_fetch.h"
#include "imap_misc.h"
#include "genstamp.h"
-
+#include "ctdl_module.h"
client_getln(buf, sizeof buf);
/* Convert RFC822 newlines (CRLF) to Unix newlines (LF) */
- lprintf(CTDL_DEBUG, "Converting CRLF to LF\n");
+ CtdlLogPrintf(CTDL_DEBUG, "Converting CRLF to LF\n");
stripped_length = 0;
for (i=0; i<literal_length; ++i) {
if (strncmp(&Imap->transmitted_message[i], "\r\n", 2)) {
literal_length = stripped_length;
Imap->transmitted_message[literal_length] = 0; /* reterminate it */
- lprintf(CTDL_DEBUG, "Converting message format\n");
+ CtdlLogPrintf(CTDL_DEBUG, "Converting message format\n");
msg = convert_internet_message(Imap->transmitted_message);
Imap->transmitted_message = NULL;
Imap->transmitted_length = 0;
/*
* Can we post here?
*/
- ret = CtdlDoIHavePermissionToPostInThisRoom(buf, sizeof buf, POST_LOGGED_IN);
+ ret = CtdlDoIHavePermissionToPostInThisRoom(buf, sizeof buf, NULL, POST_LOGGED_IN);
if (ret) {
/* Nope ... print an error message */
else {
/* Yes ... go ahead and post! */
if (msg != NULL) {
- new_msgnum = CtdlSubmitMsg(msg, NULL, "");
+ new_msgnum = CtdlSubmitMsg(msg, NULL, "", 0);
}
if (new_msgnum >= 0L) {
cprintf("%s OK [APPENDUID %ld %ld] APPEND completed\r\n",