diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2003-02-21 06:45:34 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2003-02-21 06:45:34 +0800 |
commit | d2dd873c5e078a9581bc091c640427c9841252f4 (patch) | |
tree | 4f28e9d30c22a778595e3bc36217d5d47f33b71c /mail | |
parent | 7149b27132bccf80b077d8bfe0a84beb5597a8f8 (diff) | |
download | gsoc2013-evolution-d2dd873c5e078a9581bc091c640427c9841252f4.tar.gz gsoc2013-evolution-d2dd873c5e078a9581bc091c640427c9841252f4.tar.zst gsoc2013-evolution-d2dd873c5e078a9581bc091c640427c9841252f4.zip |
Use camel_folder_free_uids().
2003-02-20 Jeffrey Stedfast <fejj@ximian.com>
* mail-callbacks.c (mark_all_as_seen): Use
camel_folder_free_uids().
svn path=/trunk/; revision=19986
Diffstat (limited to 'mail')
-rw-r--r-- | mail/ChangeLog | 3 | ||||
-rw-r--r-- | mail/mail-callbacks.c | 14 |
2 files changed, 11 insertions, 6 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog index e040fc3adf..0a523f4a16 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,5 +1,8 @@ 2003-02-20 Jeffrey Stedfast <fejj@ximian.com> + * mail-callbacks.c (mark_all_as_seen): Use + camel_folder_free_uids(). + * mail-format.c (write_headers): Use camel_charset_canonical_name() here instead of e_iconv_charset_name(). diff --git a/mail/mail-callbacks.c b/mail/mail-callbacks.c index c8256cdc78..a9610bd636 100644 --- a/mail/mail-callbacks.c +++ b/mail/mail-callbacks.c @@ -1971,11 +1971,15 @@ flag_messages (FolderBrowser *fb, guint32 mask, guint32 set) uids = g_ptr_array_new (); message_list_foreach (fb->message_list, enumerate_msg, uids); camel_folder_freeze (fb->folder); - for (i = 0; i < uids->len; i++) + for (i = 0; i < uids->len; i++) { camel_folder_set_message_flags (fb->folder, uids->pdata[i], mask, set); - camel_folder_free_uids (fb->folder, uids); + g_free (uids->pdata[i]); + } + camel_folder_thaw (fb->folder); + g_ptr_array_free (uids); + return i; } @@ -2057,12 +2061,10 @@ mark_all_as_seen (BonoboUIComponent *uih, void *user_data, const char *path) uids = camel_folder_get_uids (fb->folder); camel_folder_freeze (fb->folder); - for (i = 0; i < uids->len; i++) { + for (i = 0; i < uids->len; i++) camel_folder_set_message_flags (fb->folder, uids->pdata[i], CAMEL_MESSAGE_SEEN, ~0); - g_free (uids->pdata[i]); - } + camel_folder_free_uids (fb->folder, uids); camel_folder_thaw (fb->folder); - g_ptr_array_free (uids, TRUE); } void |