[Xfce4-commits] <postler:master> Regard UIDVALIDITY error as non-fatal warning

Christian Dywan noreply at xfce.org
Fri Feb 11 03:38:05 CET 2011


Updating branch refs/heads/master
         to 1a9567194f65ec83315d56174631e7068bb087a4 (commit)
       from 0254ca19b4d170629e2ed207a887d50f089dfec5 (commit)

commit 1a9567194f65ec83315d56174631e7068bb087a4
Author: Christian Dywan <christian at twotoasts.de>
Date:   Fri Feb 11 01:14:33 2011 +0100

    Regard UIDVALIDITY error as non-fatal warning
    
    It is possible to fetch other folders even if one of
    the folders isn't in a valid state.

 postler/postler-bureau.vala  |    4 ++++
 postler/postler-service.vala |    2 ++
 2 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/postler/postler-bureau.vala b/postler/postler-bureau.vala
index 6ad9b09..5870a83 100644
--- a/postler/postler-bureau.vala
+++ b/postler/postler-bureau.vala
@@ -491,6 +491,10 @@ public class Postler.Bureau : Gtk.Window {
                 GLib.critical (_("Account \"%s\" doesn't exist"), account);
             });
         }
+        else if ("UIDVALIDITY of slave changed" in error_message) {
+            var infobar = show_fetch_error_infobar (account, error_message);
+            infobar.set_message_type (Gtk.MessageType.WARNING);
+        }
         else
             show_fetch_error_infobar (account, error_message);
     }
diff --git a/postler/postler-service.vala b/postler/postler-service.vala
index d626643..71496d0 100644
--- a/postler/postler-service.vala
+++ b/postler/postler-service.vala
@@ -234,6 +234,8 @@ namespace Postler {
                         if ("can't verify certificate" in line
                          && helper.unverified)
                             /* Do nothing, no verification desired. */ ;
+                        else if ("UIDVALIDITY of slave changed" in line)
+                            helper.done (line); /* Try to proceed. */
                         else if (is_error)
                             helper.finnish (line);
                     });



More information about the Xfce4-commits mailing list