X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fmodules%2Fimap%2Fimap_misc.c;h=c5c7dfbbd03acda001efb2317ee0e2a2f176c292;hb=8c47559cb5ae97ec0fa35660ee16fd61a9451c72;hp=3a9474ccc4679b10c2213c1acb6c13f18c878478;hpb=d0a6f3a795db5fb278316acf068019d71845d1fa;p=citadel.git diff --git a/citadel/modules/imap/imap_misc.c b/citadel/modules/imap/imap_misc.c index 3a9474ccc..c5c7dfbbd 100644 --- a/citadel/modules/imap/imap_misc.c +++ b/citadel/modules/imap/imap_misc.c @@ -2,6 +2,22 @@ * $Id$ * * + * + * Copyright (c) 2001-2009 by the citadel.org team + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ @@ -69,7 +85,7 @@ int imap_do_copy(char *destination_folder) { return(0); } - i = imap_grabroom(roomname, destination_folder, 0); + i = imap_grabroom(roomname, destination_folder, 1); if (i != 0) return(i); /* @@ -85,7 +101,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); @@ -359,7 +375,7 @@ void imap_append(int num_parms, char *parms[]) { Imap->transmitted_message = NULL; Imap->transmitted_length = 0; - ret = imap_grabroom(roomname, parms[2], 0); + ret = imap_grabroom(roomname, parms[2], 1); if (ret != 0) { cprintf("%s NO Invalid mailbox name or access denied\r\n", parms[0]);