when a 'protocol error' is encountered disconnect from the server
authorPaul Mangan <paul@claws-mail.org>
Sun, 16 Feb 2003 11:11:37 +0000 (11:11 +0000)
committerPaul Mangan <paul@claws-mail.org>
Sun, 16 Feb 2003 11:11:37 +0000 (11:11 +0000)
ChangeLog.claws
configure.ac
src/news.c

index 558e011..d49ed1d 100644 (file)
@@ -1,3 +1,13 @@
+2003-02-16 [paul]      0.8.10claws14
+
+       * src/news.c
+               when a 'protocol error' is encountered disconnect from
+               the server. This means that the user can carry on viewing
+               other articles and doesn't have to either wait until the
+               server timesout or quit sylpheed.
+               Fixes bug #53 'Unable to read messages in newsgroups, 
+               displayed message doesn't change'
+
 2003-02-15 [christoph] 0.8.10claws13
 
        * src/imap.c
 2003-02-15 [christoph] 0.8.10claws13
 
        * src/imap.c
index af2d32d..018dada 100644 (file)
@@ -11,7 +11,7 @@ MINOR_VERSION=8
 MICRO_VERSION=10
 INTERFACE_AGE=0
 BINARY_AGE=0
 MICRO_VERSION=10
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=claws13
+EXTRA_VERSION=claws14
 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION
 
 dnl set $target
 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION
 
 dnl set $target
index 06d3963..327fdcc 100644 (file)
@@ -382,6 +382,8 @@ gchar *news_fetch_msg(Folder *folder, FolderItem *item, gint num)
                              num, filename);
        if (ok < 0) {
                g_warning("can't read article %d\n", num);
                              num, filename);
        if (ok < 0) {
                g_warning("can't read article %d\n", num);
+               session_destroy(SESSION(session));
+               REMOTE_FOLDER(folder)->session = NULL;
                g_free(filename);
                return NULL;
        }
                g_free(filename);
                return NULL;
        }