[Xfce4-commits] <postler:master> Finnish fetching silently if inbox is locked
Christian Dywan
noreply at xfce.org
Wed Feb 16 02:08:04 CET 2011
Updating branch refs/heads/master
to 689d72fff7fbd8a46ecd9e6f0b617be1df9fa27b (commit)
from f9c3bf588580adabed288a00fca95b932afbdee3 (commit)
commit 689d72fff7fbd8a46ecd9e6f0b617be1df9fa27b
Author: Christian Dywan <christian at twotoasts.de>
Date: Wed Feb 16 02:04:47 2011 +0100
Finnish fetching silently if inbox is locked
If fetching happens in parallel with another client
or the user tries to hit the button very often the
best we can do is wait.
postler/postler-service.vala | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/postler/postler-service.vala b/postler/postler-service.vala
index 69912fc..b96a5cd 100644
--- a/postler/postler-service.vala
+++ b/postler/postler-service.vala
@@ -257,6 +257,8 @@ namespace Postler {
/* Do nothing, no verification desired. */ ;
else if (line.has_prefix ("UIDVALIDITY/"))
helper.done (line); /* Try to proceed. */
+ else if ("Error: channel" in line && " is locked" in line)
+ helper.finnish (); /* Parallel access to one inbox */
else if (is_error)
helper.finnish (line);
});
More information about the Xfce4-commits
mailing list