[Xfce4-commits] <postler:master> Decode and localise folder in service status respectively
Christian Dywan
noreply at xfce.org
Fri Jan 28 21:38:02 CET 2011
Updating branch refs/heads/master
to 3ebd1ecee8984a2370b29d607364eb4bc0eb1f2c (commit)
from bd182686d649009ba6983eb2fb9dc6ec4086db4a (commit)
commit 3ebd1ecee8984a2370b29d607364eb4bc0eb1f2c
Author: Christian Dywan <christian at twotoasts.de>
Date: Fri Jan 28 21:29:00 2011 +0100
Decode and localise folder in service status respectively
postler/postler-service.vala | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/postler/postler-service.vala b/postler/postler-service.vala
index 6bb5bef..9890517 100644
--- a/postler/postler-service.vala
+++ b/postler/postler-service.vala
@@ -160,14 +160,17 @@ namespace Postler {
else if (msg.contains ("slave: ")) {
string[] pieces = msg.split (" ");
total = total - pieces[1].to_double ();
- if (folder == "INBOX")
+ if (folder == "INBOX") {
unread += pieces[3].to_int ();
+ folder = _("Inbox");
+ }
}
else if (msg.contains ("S: ?")) {
double count = (((msg.split ("/"))[2]).split (" ") [0]).to_double ();
if (folder.contains ("/"))
folder = folder.split ("/") [1];
string state = _("Fetching %d of %d").printf ((int)count, (int)total);
+ folder = Postler.Folders.decode_foldername (folder);
progress (folder + "\n" + state,
total > count ? count / total : 0);
}
More information about the Xfce4-commits
mailing list