* src/filtering.c

use procmsg flag functions in filtering or processing
        will cause incorrect folder message counts
This commit is contained in:
Christoph Hohmann 2002-09-11 18:28:01 +00:00
parent ef365afbb8
commit 564d9aa642
3 changed files with 13 additions and 7 deletions

View 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

View file

@ -8,7 +8,7 @@ MINOR_VERSION=8
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

View file

@ -170,25 +170,25 @@ static gboolean filteringaction_apply(FilteringAction * action, MsgInfo * info,
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:
MSG_UNSET_PERM_FLAGS(info->flags, MSG_MARKED);
procmsg_msginfo_unset_flags(info, MSG_MARKED, 0);
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");
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:
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: