[balsa/gtk3] Check that mailbox is still open
- From: Peter Bloomfield <PeterB src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [balsa/gtk3] Check that mailbox is still open
- Date: Mon, 25 Feb 2013 23:23:04 +0000 (UTC)
commit 1a7a163ca40c960e940dd3b8baf74b27f1ccd544
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date: Mon Feb 25 18:22:35 2013 -0500
Check that mailbox is still open
* libbalsa/mailbox.c (lbm_msgno_filt_check): check that mailbox
is still open.
ChangeLog | 5 +++++
libbalsa/mailbox.c | 7 +++++++
2 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 366eea2..e683dc5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2013-02-25 Peter Bloomfield
+ * libbalsa/mailbox.c (lbm_msgno_filt_check): check that mailbox
+ is still open.
+
+2013-02-25 Peter Bloomfield
+
* libbalsa/mailbox.c (libbalsa_mailbox_search_iter_ref): allow
NULL iter.
diff --git a/libbalsa/mailbox.c b/libbalsa/mailbox.c
index d8729eb..f363b21 100644
--- a/libbalsa/mailbox.c
+++ b/libbalsa/mailbox.c
@@ -1587,6 +1587,13 @@ lbm_msgno_filt_check(LibBalsaMailboxMsgnoFiltCheckInfo * info)
gboolean match;
GNode *node;
+ if (!MAILBOX_OPEN(mailbox)) {
+ g_object_unref(mailbox);
+ libbalsa_mailbox_search_iter_unref(search_iter);
+ g_free(info);
+ return FALSE;
+ }
+
match = search_iter ?
libbalsa_mailbox_message_match(mailbox, seqno, search_iter) : TRUE;
node = g_node_find(mailbox->msg_tree, G_PRE_ORDER, G_TRAVERSE_ALL,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]