* src/filtering.c
authorChristoph Hohmann <reboot@gmx.ch>
Wed, 11 Sep 2002 18:28:01 +0000 (18:28 +0000)
committerChristoph Hohmann <reboot@gmx.ch>
Wed, 11 Sep 2002 18:28:01 +0000 (18:28 +0000)
        use procmsg flag functions in filtering or processing
        will cause incorrect folder message counts

ChangeLog.claws
configure.in
src/filtering.c

index f3c7b20dbd03dc494db5204595c6c350d44fbf41..890fc5eb5becf625e4e212ff5b1ed4554a7150b2 100644 (file)
@@ -1,3 +1,9 @@
+2002-09-11 [christoph] 0.8.2claws40
+
+       * src/filtering.c
+               use procmsg flag functions in filtering or processing
+               will cause incorrect folder message counts
+
 2002-09-11 [colin]     0.8.2claws39
 
        * src/compose.c
 2002-09-11 [colin]     0.8.2claws39
 
        * src/compose.c
index 7315961811136ba036fd5289031456f37ed84e38..084e7840ec18656f55e4070acf71d6c9be9f3aa6 100644 (file)
@@ -8,7 +8,7 @@ MINOR_VERSION=8
 MICRO_VERSION=2
 INTERFACE_AGE=0
 BINARY_AGE=0
 MICRO_VERSION=2
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=claws39
+EXTRA_VERSION=claws40
 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION
 
 dnl set $target
 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION
 
 dnl set $target
index 366f054aa0706b1346fc1cb5072595275cb24f96..01a03f7a274f6b6f818ba8557b90663b8e358a4a 100644 (file)
@@ -170,25 +170,25 @@ static gboolean filteringaction_apply(FilteringAction * action, MsgInfo * info,
                return TRUE;
 
        case MATCHACTION_MARK:
                return TRUE;
 
        case MATCHACTION_MARK:
-               MSG_SET_PERM_FLAGS(info->flags, MSG_MARKED);
+               procmsg_msginfo_set_flags(info, MSG_MARKED, 0);
                return TRUE;
 
        case MATCHACTION_UNMARK:
                return TRUE;
 
        case MATCHACTION_UNMARK:
-               MSG_UNSET_PERM_FLAGS(info->flags, MSG_MARKED);
+               procmsg_msginfo_unset_flags(info, MSG_MARKED, 0);
                return TRUE;
                
        case MATCHACTION_MARK_AS_READ:
                return TRUE;
                
        case MATCHACTION_MARK_AS_READ:
-               MSG_UNSET_PERM_FLAGS(info->flags, MSG_UNREAD | MSG_NEW);
+               procmsg_msginfo_unset_flags(info, MSG_UNREAD | MSG_NEW, 0);
                return TRUE;
 
        case MATCHACTION_MARK_AS_UNREAD:
                debug_print("*** setting unread flags\n");
                return TRUE;
 
        case MATCHACTION_MARK_AS_UNREAD:
                debug_print("*** setting unread flags\n");
-               MSG_SET_PERM_FLAGS(info->flags, MSG_UNREAD | MSG_NEW);
+               procmsg_msginfo_set_flags(info, MSG_UNREAD | MSG_NEW, 0);
                return TRUE;
        
        case MATCHACTION_COLOR:
                return TRUE;
        
        case MATCHACTION_COLOR:
-               MSG_UNSET_PERM_FLAGS(info->flags, MSG_CLABEL_FLAG_MASK); 
-               MSG_SET_COLORLABEL_VALUE(info->flags, action->labelcolor);
+               procmsg_msginfo_unset_flags(info, MSG_CLABEL_FLAG_MASK, 0); 
+               procmsg_msginfo_set_flags(info, MSG_COLORLABEL_TO_FLAGS(action->labelcolor), 0);
                return TRUE;
 
        case MATCHACTION_FORWARD:
                return TRUE;
 
        case MATCHACTION_FORWARD: