aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSrinivasa Ragavan <sragavan@src.gnome.org>2007-04-09 14:34:41 +0800
committerSrinivasa Ragavan <sragavan@src.gnome.org>2007-04-09 14:34:41 +0800
commitad8fe0d70f4edcb431b9d4a9be0e36ea8fce5cfe (patch)
tree44f5c282954809420a281889b1ad1f9a5066d578
parent97c166f97eaa511698b74ff2456a5e2b5b44835f (diff)
downloadgsoc2013-evolution-ad8fe0d70f4edcb431b9d4a9be0e36ea8fce5cfe.tar
gsoc2013-evolution-ad8fe0d70f4edcb431b9d4a9be0e36ea8fce5cfe.tar.gz
gsoc2013-evolution-ad8fe0d70f4edcb431b9d4a9be0e36ea8fce5cfe.tar.bz2
gsoc2013-evolution-ad8fe0d70f4edcb431b9d4a9be0e36ea8fce5cfe.tar.lz
gsoc2013-evolution-ad8fe0d70f4edcb431b9d4a9be0e36ea8fce5cfe.tar.xz
gsoc2013-evolution-ad8fe0d70f4edcb431b9d4a9be0e36ea8fce5cfe.tar.zst
gsoc2013-evolution-ad8fe0d70f4edcb431b9d4a9be0e36ea8fce5cfe.zip
Fix for bug #343195
svn path=/trunk/; revision=33408
-rw-r--r--mail/ChangeLog7
-rw-r--r--mail/em-folder-properties.c7
2 files changed, 14 insertions, 0 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index 6e3d30ebe9..228bf61c42 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,3 +1,10 @@
+2007-04-09 Hiroyuki Ikezoe <poincare@ikezoe.net>
+
+ ** Fixes bug #343195
+
+ * em-folder-properties.c: (emfp_dialog_got_folder): Get total number
+ of mails with CAMEL_FOLDER_TOTAL if the folder is junk folder.
+
2007-04-06 Matthew Barnes <mbarnes@redhat.com>
** Fixes bug #383953
diff --git a/mail/em-folder-properties.c b/mail/em-folder-properties.c
index 4b1aabade3..711b7f3652 100644
--- a/mail/em-folder-properties.c
+++ b/mail/em-folder-properties.c
@@ -269,6 +269,13 @@ emfp_dialog_got_folder (char *uri, CamelFolder *folder, void *data)
prop_data->total += deleted;
}
+ /*
+ * If the ffolder is junk folder, get total number of mails.
+ */
+ if (store->flags & CAMEL_STORE_VJUNK) {
+ camel_object_get (folder, NULL, CAMEL_FOLDER_TOTAL, &prop_data->total, NULL);
+ }
+
if (store == mail_component_peek_local_store(NULL)
&& (!strcmp(prop_data->name, "Drafts")
|| !strcmp(prop_data->name, "Inbox")