From 2d4ee0e3a3b914d14506fa89a15f0dad69498158 Mon Sep 17 00:00:00 2001 From: Chris Toshok Date: Wed, 12 Jul 2000 18:14:31 +0000 Subject: don't add test-newsrc to the build since it needs libcamel (which isn't 2000-07-12 Chris Toshok * providers/nntp/Makefile.am: don't add test-newsrc to the build since it needs libcamel (which isn't built at the time test-newsrc needs linking.) * providers/nntp/camel-nntp-utils.c (get_HEAD_headers): fill in MessageInfo->message_id. (get_XOVER_headers): same. * providers/nntp/camel-nntp-folder.c (nntp_folder_init): move summary loading here. (nntp_folder_sync): summary/newsrc changes should be stored here. put a comment to that effect. (nntp_folder_set_message_flags): don't save the newsrc here. (nntp_folder_get_uids): use g_ptr_array_index instead of the cast/addition. (nntp_folder_get_summary): no need to check if we should generate the summary here. already done. (nntp_folder_get_message_info): implement. * providers/nntp/camel-nntp-store.c (camel_nntp_store_get_toplevel_dir): use evolution_dir instead of computing it ourselves. (nntp_store_disconnect): call camel_nntp_newsrc_write. (ensure_news_dir_exists): new function to create the news/ subdir. (camel_nntp_store_class_init): hook up connect/disconnect and finalize. (nntp_store_connect): if ensure_news_dir_exists fails throw an exception. svn path=/trunk/; revision=4113 --- camel/providers/nntp/camel-nntp-utils.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'camel/providers/nntp/camel-nntp-utils.c') diff --git a/camel/providers/nntp/camel-nntp-utils.c b/camel/providers/nntp/camel-nntp-utils.c index d4c2cda771..864271cd2c 100644 --- a/camel/providers/nntp/camel-nntp-utils.c +++ b/camel/providers/nntp/camel-nntp-utils.c @@ -70,6 +70,7 @@ get_XOVER_headers(CamelNNTPStore *nntp_store, CamelFolder *folder, #endif new_info->size = atoi(split_line[5]); new_info->uid = g_strdup(split_line[4]); + new_info->message_id = g_strdup(split_line[4]); g_strfreev (split_line); camel_folder_summary_add (nntp_folder->summary, new_info); @@ -151,8 +152,10 @@ get_HEAD_headers(CamelNNTPStore *nntp_store, CamelFolder *folder, new_info->to = g_strdup(header->value); else if (!g_strcasecmp(header->name, "Subject")) new_info->subject = g_strdup(header->value); - else if (!g_strcasecmp(header->name, "Message-ID")) + else if (!g_strcasecmp(header->name, "Message-ID")) { new_info->uid = g_strdup(header->value); + new_info->message_id = g_strdup(header->value); + } else if (!g_strcasecmp(header->name, "Date")) { new_info->date_sent = header_decode_date (header->value); #if 0 -- cgit v1.2.3