make filtering action 'mark_as_unread' set the unread flag AND remove the new flag
authorPaul <paul@claws-mail.org>
Tue, 30 Jun 2015 16:49:17 +0000 (17:49 +0100)
committerPaul <paul@claws-mail.org>
Tue, 30 Jun 2015 16:49:17 +0000 (17:49 +0100)
src/filtering.c

index a72dc8d..1b565a5 100644 (file)
@@ -378,7 +378,7 @@ static gboolean filteringaction_apply(FilteringAction * action, MsgInfo * info)
 
        case MATCHACTION_MARK_AS_UNREAD:
                FLUSH_COPY_IF_NEEDED(info);
-               procmsg_msginfo_set_flags(info, MSG_UNREAD, 0);
+               procmsg_msginfo_change_flags(info, MSG_UNREAD, 0, MSG_NEW, 0);
                return TRUE;
        
        case MATCHACTION_MARK_AS_SPAM: