aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-ops.c
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2004-03-11 11:05:43 +0800
committerMichael Zucci <zucchi@src.gnome.org>2004-03-11 11:05:43 +0800
commit88b02e9cf481aee0762f7e7bc0b32032cdfeb899 (patch)
treea82a03e69dad3f99caa12309c482a69333f6cb51 /mail/mail-ops.c
parent6071a963e85f69133cc1761e37b6ed942629d70d (diff)
downloadgsoc2013-evolution-88b02e9cf481aee0762f7e7bc0b32032cdfeb899.tar
gsoc2013-evolution-88b02e9cf481aee0762f7e7bc0b32032cdfeb899.tar.gz
gsoc2013-evolution-88b02e9cf481aee0762f7e7bc0b32032cdfeb899.tar.bz2
gsoc2013-evolution-88b02e9cf481aee0762f7e7bc0b32032cdfeb899.tar.lz
gsoc2013-evolution-88b02e9cf481aee0762f7e7bc0b32032cdfeb899.tar.xz
gsoc2013-evolution-88b02e9cf481aee0762f7e7bc0b32032cdfeb899.tar.zst
gsoc2013-evolution-88b02e9cf481aee0762f7e7bc0b32032cdfeb899.zip
pass the raw header in instead of name and value. (efh_format_headers): if
2004-03-11 Not Zed <NotZed@Ximian.com> * em-format-html.c (efh_format_header): pass the raw header in instead of name and value. (efh_format_headers): if we have specific headers to show, iterate over all headers and print out all matching ones, so duplicate headers are properly displayed. Related to #55298. * em-folder-selector.c (em_folder_selector_construct): dont set this to be modal. otherwise you can't click on error popups. duh. 2004-03-08 Not Zed <NotZed@Ximian.com> * em-folder-selection-button.c (em_folder_selection_button_clicked): don't let the user select virtual/vtrash folders or non-selectable folders. * mail-component.c (impl_createControls): disable selection of non-select rows. * em-folder-selector.c (em_folder_selector_create_new): exclude folders with noinferiors set. * em-folder-tree.c (folder_tree_new): add folder tree arg, hook onto the selection funciton for the tree selection. (emft_select_func): selection override function. allow certain things to be excluded. (em_folder_tree_set_excluded): api to set what is excluded from the selectability. (emft_tree_row_activated): call emft_select_func check to see if this row is excluded before emitting an activated signal. * em-folder-tree-model.c (em_folder_tree_model_set_folder_info): save folder info->flags in the tree store. * mail-folder-cache.c (create_folders): use tail recursion. (get_folders): tail recurse. * (*): Fixed for api changes in camel. svn path=/trunk/; revision=25020
Diffstat (limited to 'mail/mail-ops.c')
-rw-r--r--mail/mail-ops.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/mail/mail-ops.c b/mail/mail-ops.c
index d72423b3e9..112b59f8ca 100644
--- a/mail/mail-ops.c
+++ b/mail/mail-ops.c
@@ -1053,14 +1053,14 @@ add_special_info(CamelStore *store, CamelFolderInfo *info, char *name, char *ful
g_return_val_if_fail (info != NULL, NULL);
parent = NULL;
- for (fi = info; fi; fi = fi->sibling) {
+ for (fi = info; fi; fi = fi->next) {
if (!strcmp (fi->name, name))
break;
parent = fi;
}
/* create our vTrash/vJunk URL */
- url = camel_url_new (info->url, NULL);
+ url = camel_url_new (info->uri, NULL);
path = g_strdup_printf ("/%s", name);
if (url->fragment)
camel_url_set_fragment (url, path);
@@ -1075,7 +1075,7 @@ add_special_info(CamelStore *store, CamelFolderInfo *info, char *name, char *ful
vinfo = fi;
g_free (vinfo->full_name);
g_free (vinfo->name);
- g_free (vinfo->url);
+ g_free (vinfo->uri);
} else {
/* There wasn't a Trash/Junk folder so create a new folder entry */
vinfo = g_new0 (CamelFolderInfo, 1);
@@ -1083,14 +1083,14 @@ add_special_info(CamelStore *store, CamelFolderInfo *info, char *name, char *ful
g_assert(parent != NULL);
/* link it into the right spot */
- vinfo->sibling = parent->sibling;
- parent->sibling = vinfo;
+ vinfo->next = parent->next;
+ parent->next = vinfo;
}
/* Fill in the new fields */
vinfo->full_name = g_strdup (full_name);
vinfo->name = g_strdup(vinfo->full_name);
- vinfo->url = g_strdup_printf ("%s:%s", url_base, uri);
+ vinfo->uri = g_strdup_printf ("%s:%s", url_base, uri);
vinfo->path = g_strdup_printf("/%s", vinfo->name);
g_free (uri);
@@ -1100,7 +1100,7 @@ add_special_info(CamelStore *store, CamelFolderInfo *info, char *name, char *ful
static void
add_unmatched_info(CamelFolderInfo *fi)
{
- for (; fi; fi = fi->sibling) {
+ for (; fi; fi = fi->next) {
if (!strcmp(fi->full_name, CAMEL_UNMATCHED_NAME)) {
g_free(fi->name);
fi->name = g_strdup(_("Unmatched"));
@@ -1122,13 +1122,13 @@ get_folderinfo_get (struct _mail_msg *mm)
m->info = camel_store_get_folder_info (m->store, NULL, flags, &mm->ex);
if (m->info) {
- if (m->info->url && (m->store->flags & CAMEL_STORE_VTRASH))
+ if (m->info->uri && (m->store->flags & CAMEL_STORE_VTRASH))
add_special_info(m->store, m->info, CAMEL_VTRASH_NAME, _("Trash"), "vtrash");
- if (m->info->url && (m->store->flags & CAMEL_STORE_VJUNK)) {
+ if (m->info->uri && (m->store->flags & CAMEL_STORE_VJUNK)) {
CamelFolderInfo *info;
info = add_special_info(m->store, m->info, CAMEL_VJUNK_NAME, _("Junk"), "vjunk");
- info->unread_message_count = -1;
+ info->unread = -1;
}
if (CAMEL_IS_VEE_STORE(m->store))