summaryrefslogtreecommitdiff
path: root/alot/account.py
diff options
context:
space:
mode:
authorLucas Hoffmann <l-m-h@web.de>2016-03-12 10:33:30 +0100
committerPatrick Totzke <patricktotzke@gmail.com>2016-03-24 21:01:43 +0000
commitbb4bce29c506da51142fbf3df4b06192f293e054 (patch)
tree79e3bc7380bbb9257f37506854eb578d52ab8c26 /alot/account.py
parentcd88ba39db00abebcc5fcd20a810b6432e9efe01 (diff)
Add deprecation warning for old format.
Diffstat (limited to 'alot/account.py')
-rw-r--r--alot/account.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/alot/account.py b/alot/account.py
index db1ef288..bb350f99 100644
--- a/alot/account.py
+++ b/alot/account.py
@@ -54,7 +54,7 @@ class Account(object):
signature_filename=None, signature_as_attachment=False,
sent_box=None, sent_tags=['sent'], draft_box=None,
draft_tags=['draft'], abook=None, sign_by_default=False,
- encrypt_by_default=False,
+ encrypt_by_default=u"none",
**rest):
self.address = address
self.aliases = aliases
@@ -71,6 +71,10 @@ class Account(object):
self.draft_box = draft_box
self.draft_tags = draft_tags
self.abook = abook
+ if self.encrypt_by_default == u"True" or \
+ self.encrypt_by_default == u"False":
+ logging.debug("Deprecation warning: The format for the "
+ "encrypt_by_default option changed.")
def get_addresses(self):
"""return all email addresses connected to this account, in order of