* Eliminated the CtdlCopyMsgsToRoom() function, since it has been reduced to nothing...
authorArt Cancro <ajc@citadel.org>
Thu, 4 Jun 2009 18:54:28 +0000 (18:54 +0000)
committerArt Cancro <ajc@citadel.org>
Thu, 4 Jun 2009 18:54:28 +0000 (18:54 +0000)
citadel/modules/imap/imap_misc.c
citadel/modules/newuser/serv_newuser.c
citadel/msgbase.c
citadel/msgbase.h

index 5d40f8503821b13b16013e773c2668f2edcd78dc..4f26dd9318ff88bf1df3f467fc135b3d58f67495 100644 (file)
@@ -85,7 +85,7 @@ int imap_do_copy(char *destination_folder) {
        }
 
        if (num_selected > 0) {
-               CtdlCopyMsgsToRoom(selected_msgs, num_selected, roomname);
+               CtdlSaveMsgPointersInRoom(roomname, selected_msgs, num_selected, 1, NULL);
        }
        free(selected_msgs);
 
index afcea7e541b0d991c9ddc7a776473bfa30ff0990..eedfee6093753c89baae1e8a1799fede25288c3d 100644 (file)
@@ -87,7 +87,7 @@ void CopyNewUserGreetings(void) {
        }
 
        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. */
index f9c37d96f82737f7dd6b7e700a2df8c009fe2c55..9e399fd99825d6c2d95d1a5946e1114b8d8e2a8e 100644 (file)
@@ -4176,19 +4176,6 @@ void cmd_dele(char *args)
 }
 
 
-/*
- * 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);
-}
-
-
 
 
 /*
@@ -4278,7 +4265,7 @@ void cmd_move(char *args)
        /*
         * 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);
index 9786cfd3f16edc65dae67300b7b596833b15279c..56f2488249358035514925632b27116a1a9b2737 100644 (file)
@@ -162,7 +162,6 @@ int CtdlOutputPreLoadedMsg(struct CtdlMessage *,
                           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 {