From 7a9c747db9bdf698abb4b6aeaa5e0f56c47462db Mon Sep 17 00:00:00 2001 From: cketti Date: Tue, 11 Oct 2011 03:12:18 +0200 Subject: [PATCH] Don't export incoming/outgoing server passwords --- src/com/fsck/k9/preferences/StorageExporter.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/com/fsck/k9/preferences/StorageExporter.java b/src/com/fsck/k9/preferences/StorageExporter.java index 47c47c13c..a1f0d0732 100644 --- a/src/com/fsck/k9/preferences/StorageExporter.java +++ b/src/com/fsck/k9/preferences/StorageExporter.java @@ -231,8 +231,8 @@ public class StorageExporter { writeElement(serializer, CONNECTION_SECURITY_ELEMENT, incoming.connectionSecurity.name()); writeElement(serializer, AUTHENTICATION_TYPE_ELEMENT, incoming.authenticationType); writeElement(serializer, USERNAME_ELEMENT, incoming.username); - //TODO: make saving the password optional - writeElement(serializer, PASSWORD_ELEMENT, incoming.password); + // XXX For now we don't export the password + //writeElement(serializer, PASSWORD_ELEMENT, incoming.password); Map extras = incoming.getExtra(); if (extras != null && extras.size() > 0) { @@ -258,8 +258,8 @@ public class StorageExporter { writeElement(serializer, CONNECTION_SECURITY_ELEMENT, outgoing.connectionSecurity.name()); writeElement(serializer, AUTHENTICATION_TYPE_ELEMENT, outgoing.authenticationType); writeElement(serializer, USERNAME_ELEMENT, outgoing.username); - //TODO: make saving the password optional - writeElement(serializer, PASSWORD_ELEMENT, outgoing.password); + // XXX For now we don't export the password + //writeElement(serializer, PASSWORD_ELEMENT, outgoing.password); extras = outgoing.getExtra(); if (extras != null && extras.size() > 0) {