}
if (num_selected > 0) {
- CtdlCopyMsgsToRoom(selected_msgs, num_selected, roomname);
+ CtdlSaveMsgPointersInRoom(roomname, selected_msgs, num_selected, 1, NULL);
}
free(selected_msgs);
}
if (num_msgs > 0) {
- CtdlCopyMsgsToRoom(msglist, num_msgs, mailboxname);
+ CtdlSaveMsgPointersInRoom(mailboxname, msglist, num_msgs, 1, NULL);
}
/* Now free the memory we used, and go away. */
}
-/*
- * Back end API function for moves and deletes (multiple messages)
- */
-int CtdlCopyMsgsToRoom(long *msgnums, int num_msgs, char *dest) {
- int err;
-
- err = CtdlSaveMsgPointersInRoom(dest, msgnums, num_msgs, 1, NULL);
- if (err != 0) return(err);
-
- return(0);
-}
-
-
/*
/*
* Do the copy
*/
- err = CtdlCopyMsgsToRoom(msgs, num_msgs, targ);
+ err = CtdlSaveMsgPointersInRoom(targ, msgs, num_msgs, 1, NULL);
if (err != 0) {
cprintf("%d Cannot store message(s) in %s: error %d\n",
err, targ, err);
int crlf, /* 0=LF, 1=CRLF */
int flags /* should the bessage be exported clean? */
);
-int CtdlCopyMsgsToRoom(long *msgnum, int num_msgs, char *dest);
int CtdlDoIHavePermissionToDeleteMessagesFromThisRoom(void);
enum {