[Commits] [SCM] claws branch, master, updated. 3.16.0-66-ga0d936f

ticho at claws-mail.org ticho at claws-mail.org
Fri Feb 23 22:28:59 CET 2018


The branch, master has been updated
       via  a0d936fb78ceaf27132f72b90e02a7967cb8d46a (commit)
      from  35b524d4462bea2ed60ea9ef0da92b5db40c5b84 (commit)

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


- Log -----------------------------------------------------------------
commit a0d936fb78ceaf27132f72b90e02a7967cb8d46a
Author: Andrej Kacian <ticho at claws-mail.org>
Date:   Fri Feb 23 22:27:35 2018 +0100

    RSSyl: fix deleted item checking when modified or published time is missing
    
    Fixes bug #3971.

diff --git a/src/plugins/rssyl/rssyl_deleted.c b/src/plugins/rssyl/rssyl_deleted.c
index ef2a5c1..5991093 100644
--- a/src/plugins/rssyl/rssyl_deleted.c
+++ b/src/plugins/rssyl/rssyl_deleted.c
@@ -310,13 +310,15 @@ static void _rssyl_deleted_expire_func_f(gpointer data, gpointer user_data)
 		return;
 
 	/* time of publishing, ... */
-	if (ctx->ditem->date_published != feed_item_get_date_published(fitem))
+	if (ctx->ditem->date_published != -1 &&
+			ctx->ditem->date_published != feed_item_get_date_published(fitem))
 		return;
 
 	/* and the time of last modification must be greater
 	 * (this means that the item was updated since deletion, and possibly
 	 * contains new data, so we add it again) */
-	if (ctx->ditem->date_modified != feed_item_get_date_modified(fitem))
+	if (ctx->ditem->date_modified != -1 &&
+			ctx->ditem->date_modified != feed_item_get_date_modified(fitem))
 		return;
 
 	ctx->delete = FALSE;

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


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list