Patch: Make disable IMAP check work on nonthreaded compile
- From: "M . Thielker" <balsa t-data com>
- To: Balsa List <balsa-list gnome org>
- Subject: Patch: Make disable IMAP check work on nonthreaded compile
- Date: Thu, 9 Aug 2001 15:27:52 +0200
Hi,
it appears that the checkboxes for checking IMAP mailboxes will not do
anything when Balsa is compiled without threads. This patch corrects this
behavior.
Melanie
diff -b -B -r -u -P --exclude-from=ignore ../balsa-cvs/src/main-window.c ./src/main-window.c
--- ../balsa-cvs/src/main-window.c Mon Aug 6 00:30:53 2001
+++ ./src/main-window.c Thu Aug 9 15:25:13 2001
@@ -1442,14 +1442,25 @@
{
GList *list;
LibBalsaMailbox *mailbox;
+ char *tmp;
list = g_list_first(mailbox_list);
while (list) {
mailbox = BALSA_MAILBOX_NODE(list->data)->mailbox;
+ if(balsa_app.check_imap ||
+ !LIBBALSA_IS_MAILBOX_IMAP(mailbox)) {
+ if(LIBBALSA_IS_MAILBOX_IMAP(mailbox)) {
+ tmp=LIBBALSA_MAILBOX_IMAP(mailbox)->path;
+ if(strchr(tmp, '}'))
+ tmp=strchr(tmp, '}')+1;
+ if(balsa_app.check_imap_inbox && strcmp(tmp, "INBOX"))
+ continue;
+ }
gdk_threads_enter();
libbalsa_mailbox_check(mailbox);
gdk_threads_leave();
+ }
list = g_list_next(list);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]