aboutsummaryrefslogtreecommitdiffstats
path: root/camel/providers/nntp/camel-nntp-utils.c
diff options
context:
space:
mode:
authorChris Toshok <toshok@helixcode.com>2000-07-13 02:14:31 +0800
committerChris Toshok <toshok@src.gnome.org>2000-07-13 02:14:31 +0800
commit2d4ee0e3a3b914d14506fa89a15f0dad69498158 (patch)
treeafe5735aa1c119e6586efd9ad542dd7dfc63f551 /camel/providers/nntp/camel-nntp-utils.c
parent87a211d95ff93912225e6f342cee9b5ad47a5f8a (diff)
downloadgsoc2013-evolution-2d4ee0e3a3b914d14506fa89a15f0dad69498158.tar.gz
gsoc2013-evolution-2d4ee0e3a3b914d14506fa89a15f0dad69498158.tar.zst
gsoc2013-evolution-2d4ee0e3a3b914d14506fa89a15f0dad69498158.zip
don't add test-newsrc to the build since it needs libcamel (which isn't
2000-07-12 Chris Toshok <toshok@helixcode.com> * 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/<news server> 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
Diffstat (limited to 'camel/providers/nntp/camel-nntp-utils.c')
-rw-r--r--camel/providers/nntp/camel-nntp-utils.c5
1 files changed, 4 insertions, 1 deletions
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