aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--camel/ChangeLog6
-rw-r--r--camel/providers/imap/camel-imap-store.c13
2 files changed, 12 insertions, 7 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog
index 3bf218d170..05df802ff0 100644
--- a/camel/ChangeLog
+++ b/camel/ChangeLog
@@ -1,3 +1,9 @@
+2001-08-06 Dan Winship <danw@ximian.com>
+
+ * providers/imap/camel-imap-store.c (get_folder_info_online): Do a
+ refresh_info on the selected folder before looking at its unread
+ count. Should fix bug #4944.
+
2001-08-06 Peter Williams <peterw@ximian.com>
Completely hide the namespace from everything external to the IMAP
diff --git a/camel/providers/imap/camel-imap-store.c b/camel/providers/imap/camel-imap-store.c
index 4f8571bfae..62df070f2a 100644
--- a/camel/providers/imap/camel-imap-store.c
+++ b/camel/providers/imap/camel-imap-store.c
@@ -1293,17 +1293,16 @@ get_folder_info_online (CamelStore *store, const char *top,
&& (g_strcasecmp (fi->name, "INBOX") != 0))
continue;
- /* UW will give cached data for the currently selected
- * folder. Grr. Well, I guess this also potentially
- * saves us one IMAP command.
+ /* For the current folder, poke it to check for new
+ * messages and then report that number, rather than
+ * doing a STATUS command.
*/
if (imap_store->current_folder &&
!strcmp (imap_store->current_folder->full_name, fi->full_name)) {
+ camel_folder_refresh_info (imap_store->current_folder, NULL);
fi->unread_message_count = camel_folder_get_unread_message_count (imap_store->current_folder);
- continue;
- }
-
- fi->unread_message_count = get_folder_status (imap_store, fi->full_name, "UNSEEN");
+ } else
+ fi->unread_message_count = get_folder_status (imap_store, fi->full_name, "UNSEEN");
}
g_ptr_array_free (folders, TRUE);
* Fix build with WITH_LPK support for amd64 by change extra patches order.osa2009-05-191-3/+4 * Fix HPN crash issue by using aes128-ctr, aes192-ctr and aes256-ctr.nork2009-05-172-3/+4 * - Update to 5.2p1pav2009-05-157-258/+2740 * Fix several problems with OPENSSH_OVERWRITE_BASE=1.sumikawa2009-04-222-12/+6 * - Reset long-term inactive maintainerpav2009-03-251-1/+1 * - Integrate x509 certificate patch (optional, default off) from http://www.ro...pav2009-03-252-0/+11 * - Add vendor patch for lpk patch that fixes runtime on amd64pav2009-03-252-0/+47 * - Update to 5.1p1pav2009-03-254-49/+38 * Fix rootless build.skv2008-11-111-1/+1 * Update CONFIGURE_ARGS for how we pass CONFIGURE_TARGET to configure script.rafan2008-08-211-1/+0 * - Mark BROKEN after recent kerberos updatepav2008-06-231-0/+4 * - Update to 5.0p1mnag2008-04-195-58/+1915 * - Update HPN patch to hpn12v20mnag2008-01-162-4/+5 * - Update gsskex patch to 20070927mnag2007-10-052-9/+8 * Remove always-false/true conditions based on OSVERSION 500000edwin2007-10-041-7/+0 * - Update MD5/SHA256 of openssh hpn patch. This patch are rerolled to update v...mnag2007-09-141-2/+2 * - Update to 4.7p1mnag2007-09-083-41/+9 * - Enable ssl-enginemnag2007-08-305-2349/+52 * - Set --mandir and --infodir in CONFIGURE_ARGS if the configure scriptrafan2007-07-231-1/+1 * - Update OpenSSH to 4.6p1mnag2007-03-134-1828/+2353 * - Use RC_SUBR_SUFFIXrafan2007-02-061-6/+1 * Update HPN patch to v14 for openssh 4.5p1.ale2006-11-182-4/+4 * - Fix CHROOT patch using chroot() before setusercontext() and add strerror() ...mnag2006-11-101-18/+14 * - Update to 4.5p1mnag2006-11-103-6/+5 * - Update HPN patch. Patch are renamed, the only content differences are two r...mnag2006-10-172-7/+8 * - Add OPTION to enable Kerberos/GSSAPI patch [1]mnag2006-10-083-11/+1850 * - Fix package creation. [1]mnag2006-10-043-4/+9 * - Install ssh_config-dist and sshd_config-dist in OVERWRITE_BASE too.mnag2006-10-022-4/+2 * - Update to 4.4p1.mnag2006-10-0121-448/+467 * Update HPN-12 patch to version 8 (no functional changes,ale2006-08-302-4/+4 * Add optional OpenSC PIN patch which make it possible for OpenSSH to asksimon2006-08-092-0/+137 * - Remove unecessary ?= in PKGNAMESUFFIX [1]mnag2006-07-052-21/+5 * Add support for smart cards.ale2006-06-131-0/+6 * - Fix order in rc.d script. Because of pidfile are empty, reload [2] and rest...mnag2006-02-222-14/+18 * Forget to add HPN patches.mnag2006-02-122-2/+8 * - Update to 4.3p2mnag2006-02-122-10/+4 * - Update to 4.3p1mnag2006-02-088-88/+194 * - Reorganize Makefile in preparation to update to 4.3p1mnag2006-02-082-74/+75 * Add SHA256mnag2005-11-091-0/+1 * Update my emailmnag2005-09-171-1/+1 * - Pass maintainership to submitter, since he sent the last patch.garga2005-09-061-1/+1 * - Update to 4.2p1garga2005-09-025-146/+70 * - Update to 4.1p1pav2005-06-072-5/+5 * - Don't specify --with-ssl-dir when using the system's OpenSSLpav2005-04-121-0/+2 * - Update to 4.0p1ahze2005-03-209-68/+137 * - sshd child process crashes when user with expired password logs in.pav2004-12-191-1/+1 * - drop maintainershipdinoex2004-10-141-1/+1 * - new option WITH_OPENSSH_CHROOTdinoex2004-10-122-24/+62 * - cleanup patchesdinoex2004-10-125-21/+21 * - update to 3.9p1dinoex2004-08-18