Updating branch refs/heads/master
to 90c568fc7eb7566f48584b7f41804127ee97da75 (commit)
from 9ceb220f9b46100a981eb53a78617f6404f05d4b (commit)
commit 90c568fc7eb7566f48584b7f41804127ee97da75
Author: Christian Dywan <[email protected]>
Date: Sat Jan 22 03:13:07 2011 +0100
Only report new message notifications for inbox
Fixes: https://bugs.launchpad.net/postler/+bug/697856
postler/postler-service.vala | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/postler/postler-service.vala b/postler/postler-service.vala
index 0583ddb..34aecff 100644
--- a/postler/postler-service.vala
+++ b/postler/postler-service.vala
@@ -158,7 +158,8 @@ namespace Postler {
else if (msg.contains ("slave: ")) {
string[] pieces = msg.split (" ");
total = total - pieces[1].to_double ();
- unread += pieces[3].to_int ();
+ if (folder == "INBOX")
+ unread += pieces[3].to_int ();
}
else if (msg.contains ("S: ?")) {
double count = (((msg.split ("/"))[2]).split (" ")
[0]).to_double ();
_______________________________________________
Xfce4-commits mailing list
[email protected]
http://foo-projects.org/mailman/listinfo/xfce4-commits