#include "citserver.h"
#include "support.h"
#include "config.h"
-#include "serv_extensions.h"
#include "room_ops.h"
#include "user_ops.h"
#include "policy.h"
int i;
char roomname[ROOMNAMELEN];
struct ctdlroom qrbuf;
- struct timeval tv1, tv2, tv3;
long *selected_msgs = NULL;
int num_selected = 0;
/*
* Copy all the message pointers in one shot.
*/
- gettimeofday(&tv1, NULL);
-
selected_msgs = malloc(sizeof(long) * IMAP->num_msgs);
if (selected_msgs == NULL) return(-1);
}
/* Set the flags... */
- gettimeofday(&tv2, NULL);
i = getroom(&qrbuf, roomname);
if (i == 0) {
CtdlSetSeen(seen_yes, num_seen_yes, 1, ctdlsetseen_seen, NULL, &qrbuf);
free(answ_yes);
free(answ_no);
- gettimeofday(&tv3, NULL);
- lprintf(CTDL_DEBUG, "Copying pointers: %ld microseconds / Setting flags: %ld microseconds\n",
- (tv2.tv_usec + (tv2.tv_sec * 1000000)) - (tv1.tv_usec + (tv1.tv_sec * 1000000)),
- (tv3.tv_usec + (tv3.tv_sec * 1000000)) - (tv2.tv_usec + (tv2.tv_sec * 1000000))
- );
return(0);
}
long literal_length;
long bytes_transferred;
long stripped_length = 0;
- struct CtdlMessage *msg;
+ struct CtdlMessage *msg = NULL;
long new_msgnum = (-1L);
int ret = 0;
char roomname[ROOMNAMELEN];