#include "citserver.h"
#include "support.h"
#include "config.h"
-#include "dynloader.h"
+#include "serv_extensions.h"
#include "room_ops.h"
#include "user_ops.h"
#include "policy.h"
if (IMAP->num_msgs > 0) {
for (i = 0; i < IMAP->num_msgs; ++i) {
- if (IMAP->flags[i] && IMAP_SELECTED) {
+ if (IMAP->flags[i] & IMAP_SELECTED) {
CtdlCopyMsgToRoom(
IMAP->msgids[i], roomname);
}
}
/* Convert RFC822 newlines (CRLF) to Unix newlines (LF) */
- lprintf(9, "Converting newline format\n");
+ lprintf(CTDL_DEBUG, "Converting newline format\n");
for (i=0; i<literal_length; ++i) {
if (!strncmp(&IMAP->transmitted_message[i], "\r\n", 2)) {
strcpy(&IMAP->transmitted_message[i],
}
}
- lprintf(9, "Converting message format\n");
+ lprintf(CTDL_DEBUG, "Converting message format\n");
msg = convert_internet_message(IMAP->transmitted_message);
IMAP->transmitted_message = NULL;
IMAP->transmitted_length = 0;
* folder is selected, save its name so we can return there!!!!!)
*/
if (IMAP->selected) {
- strcpy(savedroom, CC->quickroom.QRname);
+ strcpy(savedroom, CC->room.QRname);
}
usergoto(roomname, 0, 0, &msgs, &new);
* private mailboxes.
*/
if (CC->logged_in) {
- if ( (CC->quickroom.QRflags & QR_MAILBOX) == 0) {
+ if ( (CC->room.QRflags & QR_MAILBOX) == 0) {
if (msg->cm_fields['A'] != NULL) phree(msg->cm_fields['A']);
if (msg->cm_fields['N'] != NULL) phree(msg->cm_fields['N']);
if (msg->cm_fields['H'] != NULL) phree(msg->cm_fields['H']);
- msg->cm_fields['A'] = strdoop(CC->usersupp.fullname);
+ msg->cm_fields['A'] = strdoop(CC->user.fullname);
msg->cm_fields['N'] = strdoop(config.c_nodename);
msg->cm_fields['H'] = strdoop(config.c_humannode);
}