aboutsummaryrefslogtreecommitdiffstats
path: root/camel/providers/local/camel-local-summary.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2002-12-18 05:46:44 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2002-12-18 05:46:44 +0800
commita84f11d6bd217de89e73b1880546a3af48cfd9c8 (patch)
tree12820d1698832a64f7f7859224ee0b89f18b9e35 /camel/providers/local/camel-local-summary.c
parent5c90cbb6e1a5a1f4cf59c7554e273aec4f52fa22 (diff)
downloadgsoc2013-evolution-a84f11d6bd217de89e73b1880546a3af48cfd9c8.tar.gz
gsoc2013-evolution-a84f11d6bd217de89e73b1880546a3af48cfd9c8.tar.zst
gsoc2013-evolution-a84f11d6bd217de89e73b1880546a3af48cfd9c8.zip
Replace calls to g_string_sprintfa() with g_string_append_printf() since
2002-12-17 Jeffrey Stedfast <fejj@ximian.com> * providers/imap/camel-imap-utils.c: Replace calls to g_string_sprintfa() with g_string_append_printf() since the former seems to have been deprecated. * providers/imap/camel-imap-search.c: Same. * providers/imap/camel-imap-folder.c: Here too. * providers/local/camel-mbox-summary.c: And here. * providers/local/camel-local-summary.c: Replace g_string_sprintf() with g_string_printf(). * camel-data-cache.c (data_cache_expire): Replace g_string_sprintf() with g_string_printf(). * camel-url.c: Replace calls to g_string_sprintfa() with g_string_append_printf() since the former seems to have been deprecated. * camel-service.c: Same. * camel-mime-utils.c: Here too. svn path=/trunk/; revision=19154
Diffstat (limited to 'camel/providers/local/camel-local-summary.c')
-rw-r--r--camel/providers/local/camel-local-summary.c40
1 files changed, 21 insertions, 19 deletions
diff --git a/camel/providers/local/camel-local-summary.c b/camel/providers/local/camel-local-summary.c
index 4e83224cfe..807b04e4b0 100644
--- a/camel/providers/local/camel-local-summary.c
+++ b/camel/providers/local/camel-local-summary.c
@@ -453,7 +453,8 @@ local_summary_add(CamelLocalSummary *cls, CamelMimeMessage *msg, const CamelMess
camel_folder_change_info_add_uid(ci, camel_message_info_uid(mi));
} else {
d(printf("Failed!\n"));
- camel_exception_set(ex, 1, _("Unable to add message to summary: unknown reason"));
+ camel_exception_set (ex, CAMEL_EXCEPTION_SYSTEM,
+ _("Unable to add message to summary: unknown reason"));
}
return mi;
}
@@ -475,42 +476,43 @@ local_summary_encode_x_evolution(CamelLocalSummary *cls, const CamelMessageInfo
p = uidstr = camel_message_info_uid(mi);
while (*p && isdigit(*p))
p++;
- if (*p == 0 && sscanf(uidstr, "%u", &uid) == 1) {
- g_string_sprintf(out, "%08x-%04x", uid, mi->flags & 0xffff);
+ if (*p == 0 && sscanf (uidstr, "%u", &uid) == 1) {
+ g_string_printf (out, "%08x-%04x", uid, mi->flags & 0xffff);
} else {
- g_string_sprintf(out, "%s-%04x", uidstr, mi->flags & 0xffff);
+ g_string_printf (out, "%s-%04x", uidstr, mi->flags & 0xffff);
}
if (flag || tag) {
- val = g_string_new("");
-
+ val = g_string_new ("");
+
if (flag) {
while (flag) {
- g_string_append(val, flag->name);
+ g_string_append (val, flag->name);
if (flag->next)
- g_string_append_c(val, ',');
+ g_string_append_c (val, ',');
flag = flag->next;
}
- header_set_param(&params, "flags", val->str);
- g_string_truncate(val, 0);
+ header_set_param (&params, "flags", val->str);
+ g_string_truncate (val, 0);
}
if (tag) {
while (tag) {
- g_string_append(val, tag->name);
- g_string_append_c(val, '=');
- g_string_append(val, tag->value);
+ g_string_append (val, tag->name);
+ g_string_append_c (val, '=');
+ g_string_append (val, tag->value);
if (tag->next)
- g_string_append_c(val, ',');
+ g_string_append_c (val, ',');
tag = tag->next;
}
- header_set_param(&params, "tags", val->str);
+ header_set_param (&params, "tags", val->str);
}
- g_string_free(val, TRUE);
- header_param_list_format_append(out, params);
- header_param_list_free(params);
+ g_string_free (val, TRUE);
+ header_param_list_format_append (out, params);
+ header_param_list_free (params);
}
ret = out->str;
- g_string_free(out, FALSE);
+ g_string_free (out, FALSE);
+
return ret;
}