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 a72dc8d197d65a83f35a057caa92719d24f14353..1b565a5d583a16f58fc0eab718a0a185fedc4448 100644 (file)
@@ -378,7 +378,7 @@ static gboolean filteringaction_apply(FilteringAction * action, MsgInfo * info)
 
        case MATCHACTION_MARK_AS_UNREAD:
                FLUSH_COPY_IF_NEEDED(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:
                return TRUE;
        
        case MATCHACTION_MARK_AS_SPAM: