From 564d9aa642236018dc71aa280d39e86748703843 Mon Sep 17 00:00:00 2001 From: Christoph Hohmann Date: Wed, 11 Sep 2002 18:28:01 +0000 Subject: [PATCH] * src/filtering.c use procmsg flag functions in filtering or processing will cause incorrect folder message counts --- ChangeLog.claws | 6 ++++++ configure.in | 2 +- src/filtering.c | 12 ++++++------ 3 files changed, 13 insertions(+), 7 deletions(-) diff --git a/ChangeLog.claws b/ChangeLog.claws index f3c7b20db..890fc5eb5 100644 --- a/ChangeLog.claws +++ b/ChangeLog.claws @@ -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 diff --git a/configure.in b/configure.in index 731596181..084e7840e 100644 --- a/configure.in +++ b/configure.in @@ -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 diff --git a/src/filtering.c b/src/filtering.c index 366f054aa..01a03f7a2 100644 --- a/src/filtering.c +++ b/src/filtering.c @@ -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: -- 2.25.1