]> code.citadel.org Git - citadel.git/blobdiff - citadel/imap_misc.c
* IMAP service: fixed bug that was causing the wrong messages (usually *all*
[citadel.git] / citadel / imap_misc.c
index ab03090b1a068f7d119ef56db28412c87cb4fffd..aac16cc7cebf3482258794142447fd68fb8e39c2 100644 (file)
@@ -68,7 +68,7 @@ int imap_do_copy(char *destination_folder) {
 
        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);
                        }