[Xfce4-commits] <postler:master> Reset localised folders on server changes
Christian Dywan
noreply at xfce.org
Thu Dec 30 06:00:07 CET 2010
Updating branch refs/heads/master
to 03860c9b04450f6159eb2c9f263b1ad10ee89237 (commit)
from e115ea89a7f4a7737a9d60dd8404666bb84a8ef1 (commit)
commit 03860c9b04450f6159eb2c9f263b1ad10ee89237
Author: Christian Dywan <christian at twotoasts.de>
Date: Wed Dec 29 00:45:44 2010 +0100
Reset localised folders on server changes
If the user tried to fetch mail before, the localised folders
were likely wrongly guessed.
postler/postler-accountsetup.vala | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/postler/postler-accountsetup.vala b/postler/postler-accountsetup.vala
index 6868f91..a2f2db7 100644
--- a/postler/postler-accountsetup.vala
+++ b/postler/postler-accountsetup.vala
@@ -94,6 +94,18 @@ public class Postler.AccountWidget : Gtk.VBox {
public void apply () {
if (info.name == null)
info.name = address.text;
+
+ /* Reset localised folders on server changes */
+ if (info.address != address.text
+ || info.password != password.text
+ || info.receive != null && info.receive != receiver.text
+ || info.username != null && info.username != username.text
+ || info.prefix != null && info.prefix != username.text
+ || info.send != null && info.send != sender.text) {
+ for (int i = 1; i < FolderType.MAX; i++)
+ info.folders[i] = null;
+ }
+
info.realname = realname.text;
info.address = address.text;
info.password = password.text;
More information about the Xfce4-commits
mailing list