diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2011-05-13 07:00:09 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2011-05-13 07:00:09 +0800 |
commit | b663d51f1bd01979030b8dff57a2631cd672775e (patch) | |
tree | 40648b9162fb41c49ae5bf20f3bbc24b0b030bea /plugins/mailing-list-actions | |
parent | 8ff0684fa2e371a80cca60e8df167cc104c473c2 (diff) | |
download | gsoc2013-evolution-b663d51f1bd01979030b8dff57a2631cd672775e.tar gsoc2013-evolution-b663d51f1bd01979030b8dff57a2631cd672775e.tar.gz gsoc2013-evolution-b663d51f1bd01979030b8dff57a2631cd672775e.tar.bz2 gsoc2013-evolution-b663d51f1bd01979030b8dff57a2631cd672775e.tar.lz gsoc2013-evolution-b663d51f1bd01979030b8dff57a2631cd672775e.tar.xz gsoc2013-evolution-b663d51f1bd01979030b8dff57a2631cd672775e.tar.zst gsoc2013-evolution-b663d51f1bd01979030b8dff57a2631cd672775e.zip |
Miscellaneous cleanups.
Diffstat (limited to 'plugins/mailing-list-actions')
-rw-r--r-- | plugins/mailing-list-actions/mailing-list-actions.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/plugins/mailing-list-actions/mailing-list-actions.c b/plugins/mailing-list-actions/mailing-list-actions.c index 310c9affce..f97463249c 100644 --- a/plugins/mailing-list-actions/mailing-list-actions.c +++ b/plugins/mailing-list-actions/mailing-list-actions.c @@ -228,18 +228,21 @@ emla_list_action (EMailReader *reader, CamelFolder *folder; GPtrArray *uids; emla_action_data *data; + const gchar *message_uid; folder = e_mail_reader_get_folder (reader); - uids = e_mail_reader_get_selected_uids (reader); + g_return_if_fail (CAMEL_IS_FOLDER (folder)); - g_return_if_fail (uids->len == 1); + uids = e_mail_reader_get_selected_uids (reader); + g_return_if_fail (uids != NULL && uids->len == 1); + message_uid = g_ptr_array_index (uids, 0); data = g_malloc (sizeof (emla_action_data)); data->reader = g_object_ref (reader); data->action = action; mail_get_message ( - folder, uids->pdata[0], + folder, message_uid, emla_list_action_do, data, mail_msg_unordered_push); |