oops, poke the right uid to get the article number.
authorNot Zed <NotZed@Ximian.com>
Thu, 20 May 2004 02:30:46 +0000 (02:30 +0000)
committerMichael Zucci <zucchi@src.gnome.org>
Thu, 20 May 2004 02:30:46 +0000 (02:30 +0000)
2004-05-20  Not Zed  <NotZed@Ximian.com>

* providers/nntp/camel-nntp-folder.c (nntp_folder_get_message):
oops, poke the right uid to get the article number.
(nntp_folder_cache_message): & here too.  Somehow fixes #58700,
but i don't know why.

camel/ChangeLog
camel/providers/nntp/camel-nntp-folder.c

index 56d534f..2b55f96 100644 (file)
@@ -1,3 +1,10 @@
+2004-05-20  Not Zed  <NotZed@Ximian.com>
+
+       * providers/nntp/camel-nntp-folder.c (nntp_folder_get_message):
+       oops, poke the right uid to get the article number.
+       (nntp_folder_cache_message): & here too.  Somehow fixes #58700,
+       but i don't know why.
+
 2004-05-19  Not Zed  <NotZed@Ximian.com>
 
        * camel-folder.c (transfer_message_to): copy the messageinfo
index 3c8b248..411cc34 100644 (file)
@@ -182,7 +182,7 @@ nntp_folder_cache_message (CamelDiscoFolder *disco_folder, const char *uid, Came
 
        article = alloca(strlen(uid)+1);
        strcpy(article, uid);
-       msgid = strchr(uid, ',');
+       msgid = strchr(article, ',');
        if (!msgid) {
                camel_exception_setv (ex, CAMEL_EXCEPTION_SYSTEM,
                                      _("Internal error: uid in invalid format: %s"), uid);
@@ -222,7 +222,7 @@ nntp_folder_get_message (CamelFolder *folder, const char *uid, CamelException *e
 
        article = alloca(strlen(uid)+1);
        strcpy(article, uid);
-       msgid = strchr (uid, ',');
+       msgid = strchr (article, ',');
        if (msgid == NULL) {
                camel_exception_setv (ex, CAMEL_EXCEPTION_SYSTEM,
                                      _("Internal error: uid in invalid format: %s"), uid);