diff options
Diffstat (limited to 'camel/providers/nntp/camel-nntp-utils.c')
-rw-r--r-- | camel/providers/nntp/camel-nntp-utils.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/camel/providers/nntp/camel-nntp-utils.c b/camel/providers/nntp/camel-nntp-utils.c index 864271cd2c..e0a331f2a7 100644 --- a/camel/providers/nntp/camel-nntp-utils.c +++ b/camel/providers/nntp/camel-nntp-utils.c @@ -69,10 +69,15 @@ get_XOVER_headers(CamelNNTPStore *nntp_store, CamelFolder *folder, new_info->headers.date_received = g_strdup(split_line[3]); #endif new_info->size = atoi(split_line[5]); - new_info->uid = g_strdup(split_line[4]); + new_info->uid = g_strdup_printf ("%s,%s", split_line[0], split_line[4]); new_info->message_id = g_strdup(split_line[4]); g_strfreev (split_line); + if (camel_nntp_newsrc_article_is_read (nntp_store->newsrc, + nntp_folder->group_name, + atoi (split_line[0]))) + new_info->flags |= CAMEL_MESSAGE_SEEN; + camel_folder_summary_add (nntp_folder->summary, new_info); } g_free (line); @@ -153,7 +158,7 @@ get_HEAD_headers(CamelNNTPStore *nntp_store, CamelFolder *folder, else if (!g_strcasecmp(header->name, "Subject")) new_info->subject = g_strdup(header->value); else if (!g_strcasecmp(header->name, "Message-ID")) { - new_info->uid = g_strdup(header->value); + new_info->uid = g_strdup_printf("%d,%s", i, header->value); new_info->message_id = g_strdup(header->value); } else if (!g_strcasecmp(header->name, "Date")) { |