talons

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

commit 7c809b4f3d79a9e8eb79ed06e77a12e6e5a6bd3a
parent 27c4b31baedebf97f317fce1e30e5b5c86e62cb2
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;