From 0c5435836a8cc45ec3d35edd57bf9ed9b05e6248 Mon Sep 17 00:00:00 2001 From: Not Zed Date: Tue, 17 Feb 2004 04:52:46 +0000 Subject: ** See bug #53861. 2004-02-17 Not Zed ** See bug #53861. * providers/nntp/camel-nntp-summary.c (add_range_xover): Fix from Edd Dumbill to avoid aborting on irrelevently truncated lines. svn path=/trunk/; revision=24754 --- camel/ChangeLog | 8 ++++++++ camel/providers/nntp/camel-nntp-summary.c | 4 ++++ 2 files changed, 12 insertions(+) diff --git a/camel/ChangeLog b/camel/ChangeLog index d6eee1ea8a..4221438ae8 100644 --- a/camel/ChangeLog +++ b/camel/ChangeLog @@ -1,3 +1,11 @@ +2004-02-17 Not Zed + + ** See bug #53861. + + * providers/nntp/camel-nntp-summary.c (add_range_xover): Fix from + Edd Dumbill to avoid aborting on irrelevently + truncated lines. + 2004-02-16 Not Zed ** See bug #51045. diff --git a/camel/providers/nntp/camel-nntp-summary.c b/camel/providers/nntp/camel-nntp-summary.c index 6c9c7e54b8..8c0d5f8476 100644 --- a/camel/providers/nntp/camel-nntp-summary.c +++ b/camel/providers/nntp/camel-nntp-summary.c @@ -478,6 +478,10 @@ add_range_xover(CamelNNTPSummary *cns, unsigned int high, unsigned int low, Came } } + /* skip headers we don't care about, incase the server doesn't actually send some it said it would. */ + while (xover && xover->name == NULL) + xover = xover->next; + /* truncated line? ignore? */ if (xover == NULL) { mi = camel_folder_summary_uid(s, cns->priv->uid); -- cgit v1.2.3