[PATCH] Re: Unread messages un-highlighted



On 2001.12.17 23:13 Jon Tai wrote:
> Will this behavior be permanent?  (Will other people need to set this 
> option themselves?)  or is it just a temporary thing?  (The unread 
> status will be automatically restored after mail is checked the first 
> time)  I think it should be automatic, although I'm not sure I 
> understand the technical details of it all.  - Jon

Incremental scanning will, I hope, be permanent--that is, until someone 
finds a better way to open an IMAP connection with a reasonable amount 
of network traffic. Clearing the unread style on folders needn't be. A 
simple patch for checking new mail immediately after repopulating the 
mailbox list is attached.

You may find the immediate new-mail check intrusive, especially if you 
expand several nodes quickly. Delaying the check for, say, 5 seconds 
might work better; if it's not an issue, the present fix should work.

Comments?
diff -u -r1.130 balsa-mblist.c
--- src/balsa-mblist.c	2001/12/06 22:51:13	1.130
+++ src/balsa-mblist.c	2001/12/18 13:30:49
@@ -1648,5 +1648,8 @@
         g_list_free(l);
         if (BALSA_MBLIST(ctree) != balsa_app.mblist)
             balsa_mblist_repopulate(BALSA_MBLIST(ctree));
+        /* to restore the folder styles for unread messages, we need to
+         * do a full check; perhaps after a few seconds' delay? */
+        check_new_messages_real(NULL, NULL, TYPE_BACKGROUND);
     }
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]