talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

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

RSSyl: fix deleted item checking when modified or published time is missing

Fixes bug #3971.

Diffstat:
Msrc/plugins/rssyl/rssyl_deleted.c | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git 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;