Added an assert to make sure that `mi' isn't NULL.
2001-07-05 Jeffrey Stedfast <fejj@ximian.com> * camel-folder-summary.c (camel_message_info_string): Added an assert to make sure that `mi' isn't NULL. (camel_message_info_set_string): Same. * providers/imap/camel-imap-command.c (camel_imap_response_free): Create and use a temporary CamelException for use with camel_imap_folder_changed. svn path=/trunk/; revision=10834
This commit is contained in:
committed by
Jeffrey Stedfast
parent
f09882063f
commit
fec83fec7d
@ -1,3 +1,13 @@
|
||||
2001-07-05 Jeffrey Stedfast <fejj@ximian.com>
|
||||
|
||||
* camel-folder-summary.c (camel_message_info_string): Added an
|
||||
assert to make sure that `mi' isn't NULL.
|
||||
(camel_message_info_set_string): Same.
|
||||
|
||||
* providers/imap/camel-imap-command.c (camel_imap_response_free):
|
||||
Create and use a temporary CamelException for use with
|
||||
camel_imap_folder_changed.
|
||||
|
||||
2001-07-05 Jeffrey Stedfast <fejj@ximian.com>
|
||||
|
||||
* camel-pgp-context.c (pgp_verify): Send the
|
||||
|
||||
@ -2443,24 +2443,29 @@ camel_message_info_free(CamelMessageInfo *mi)
|
||||
}
|
||||
|
||||
#if defined (DOEPOOLV) || defined (DOESTRV)
|
||||
const char *camel_message_info_string(const CamelMessageInfo *mi, int type)
|
||||
const char *
|
||||
camel_message_info_string (const CamelMessageInfo *mi, int type)
|
||||
{
|
||||
g_assert (mi != NULL);
|
||||
|
||||
if (mi->strings == NULL)
|
||||
return "";
|
||||
#ifdef DOEPOOLV
|
||||
return e_poolv_get(mi->strings, type);
|
||||
return e_poolv_get (mi->strings, type);
|
||||
#else
|
||||
return e_strv_get(mi->strings, type);
|
||||
return e_strv_get (mi->strings, type);
|
||||
#endif
|
||||
}
|
||||
|
||||
void camel_message_info_set_string(CamelMessageInfo *mi, int type, char *str)
|
||||
void
|
||||
camel_message_info_set_string (CamelMessageInfo *mi, int type, char *str)
|
||||
{
|
||||
g_assert(mi->strings != NULL);
|
||||
g_assert (mi != NULL);
|
||||
g_assert (mi->strings != NULL);
|
||||
#ifdef DOEPOOLV
|
||||
e_poolv_set(mi->strings, type, str, TRUE);
|
||||
e_poolv_set (mi->strings, type, str, TRUE);
|
||||
#else
|
||||
mi->strings = e_strv_set_ref_free(mi->strings, type, str);
|
||||
mi->strings = e_strv_set_ref_free (mi->strings, type, str);
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
|
||||
@ -413,8 +413,12 @@ camel_imap_response_free (CamelImapStore *store, CamelImapResponse *response)
|
||||
if (response->folder) {
|
||||
if (exists > 0 || expunged) {
|
||||
/* Update the summary */
|
||||
camel_imap_folder_changed (response->folder,
|
||||
exists, expunged, NULL);
|
||||
CamelException ex;
|
||||
|
||||
camel_exception_init (&ex);
|
||||
camel_imap_folder_changed (response->folder, exists, expunged, &ex);
|
||||
camel_exception_clear (&ex);
|
||||
|
||||
if (expunged)
|
||||
g_array_free (expunged, TRUE);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user