0.8.8claws75
authorChristoph Hohmann <reboot@gmx.ch>
Fri, 10 Jan 2003 14:58:10 +0000 (14:58 +0000)
committerChristoph Hohmann <reboot@gmx.ch>
Fri, 10 Jan 2003 14:58:10 +0000 (14:58 +0000)
* src/folder.c
        don't accept 0 as a valid uid returned by copy and move
        functions. 0 means the message was copied or moved but the
        new uid could not be fetched. It is not an error condition
        for the copy or move operation.

ChangeLog.claws
configure.in
src/folder.c

index 2824d6411c7651cce68d9cff44e523c6d919c278..b98c22cc94a9595ee1802d9bf5625c008736c60d 100644 (file)
@@ -1,4 +1,12 @@
-2003-01-10 [paul]      0.8..8claws74
+2003-01-10 [christoph] 0.8.8claws75
+
+       * src/folder.c
+               don't accept 0 as a valid uid returned by copy and move
+               functions. 0 means the message was copied or moved but the
+               new uid could not be fetched. It is not an error condition
+               for the copy or move operation.
+
+2003-01-10 [paul]      0.8.8claws74
 
        * src/prefs_filtering.c
                change English used in Alert when entry is not
index 86c25bcdf0e458a83f9dbfd0c62d16dab30e1374..f7e10f9167ac92f7f693d4cee704b612f4445c3d 100644 (file)
@@ -11,7 +11,7 @@ MINOR_VERSION=8
 MICRO_VERSION=8
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=claws74
+EXTRA_VERSION=claws75
 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION
 
 dnl set $target
index 6b65078740d65fb275d3fdbe1727dcb8a6025854..eaae52915333953b077910c64d317e9f1dab9d46 100644 (file)
@@ -1682,7 +1682,7 @@ gint folder_item_move_msg(FolderItem *dest, MsgInfo *msginfo)
 
        num = folder->copy_msg(folder, dest, msginfo);
        
-       if (num != -1) {
+       if (num > 0) {
                MsgInfo *newmsginfo;
     
                /* Add new msginfo to dest folder */
@@ -1796,7 +1796,7 @@ gint folder_item_move_msgs_with_dest(FolderItem *dest, GSList *msglist)
 
                num = GPOINTER_TO_INT(l2->data);
 
-               if (num != -1) {
+               if (num > 0) {
                        MsgInfo *newmsginfo;
 
                        newmsginfo = folder->get_msginfo(folder, dest, num);
@@ -1838,7 +1838,7 @@ gint folder_item_move_msgs_with_dest(FolderItem *dest, GSList *msglist)
 
                num = GPOINTER_TO_INT(l2->data);
                
-               if (num != -1) {
+               if (num > 0) {
                        item->folder->remove_msg(item->folder,
                                                 msginfo->folder,
                                                 msginfo->msgnum);
@@ -1901,7 +1901,7 @@ gint folder_item_copy_msg(FolderItem *dest, MsgInfo *msginfo)
        if (!dest->cache) folder_item_read_cache(dest);
        
        num = folder->copy_msg(folder, dest, msginfo);
-       if (num != -1) {
+       if (num > 0) {
                MsgInfo *newmsginfo;
 
                if (NULL != (newmsginfo = folder->get_msginfo(folder, dest, num))) {
@@ -1993,7 +1993,7 @@ gint folder_item_copy_msgs_with_dest(FolderItem *dest, GSList *msglist)
 
                num = GPOINTER_TO_INT(l2->data);
 
-               if (num != -1) {
+               if (num > 0) {
                        MsgInfo *newmsginfo;
 
                        newmsginfo = folder->get_msginfo(folder, dest, num);