[Commits] [SCM] claws branch, master, updated. 3.11.1-101-ge0aa60c

ticho at claws-mail.org ticho at claws-mail.org
Thu May 21 23:34:43 CEST 2015


The branch, master has been updated
       via  e0aa60ca7ac4d26fe0dd4b00cad59a0e770bb009 (commit)
      from  f3d3586ed9e32033eefa3f76c9bbb1ee1fdfbf55 (commit)

Summary of changes:
 src/plugins/rssyl/rssyl_add_item.c |   10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)


- Log -----------------------------------------------------------------
commit e0aa60ca7ac4d26fe0dd4b00cad59a0e770bb009
Author: Andrej Kacian <ticho at claws-mail.org>
Date:   Thu May 21 23:32:00 2015 +0200

    RSSyl: Leave unread flag on new items regardless of silent_update setting.
    
    Closes bug #2601

diff --git a/src/plugins/rssyl/rssyl_add_item.c b/src/plugins/rssyl/rssyl_add_item.c
index bfb531c..551f29d 100644
--- a/src/plugins/rssyl/rssyl_add_item.c
+++ b/src/plugins/rssyl/rssyl_add_item.c
@@ -537,10 +537,12 @@ void rssyl_add_item(RFolderItem *ritem, FeedItem *feed_item)
 
 	/* Unset unread+new if the changed item wasn't set unread and user
 	 * doesn't want to see it unread because of the change. */
-	if (!(oldperm_flags & MSG_UNREAD) && (ritem->silent_update == 2
-			|| (ritem->silent_update == 1 && dif == EXISTS_CHANGED_TEXTONLY)))
-		procmsg_msginfo_unset_flags(
-				folder_item_get_msginfo((FolderItem *)ritem, d), MSG_NEW | MSG_UNREAD, 0);
+	if (dif != EXISTS_NEW) {
+		if (!(oldperm_flags & MSG_UNREAD) && (ritem->silent_update == 2
+				|| (ritem->silent_update == 1 && dif == EXISTS_CHANGED_TEXTONLY)))
+			procmsg_msginfo_unset_flags(
+					folder_item_get_msginfo((FolderItem *)ritem, d), MSG_NEW | MSG_UNREAD, 0);
+	}
 
 	debug_print("RSSyl: folder_item_add_msg(): %d\n", d);
 }

-----------------------------------------------------------------------


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list