summaryrefslogtreecommitdiff
path: root/alot/account.py
diff options
context:
space:
mode:
authorpazz <patricktotzke@gmail.com>2011-07-27 22:35:51 +0100
committerpazz <patricktotzke@gmail.com>2011-07-27 22:35:51 +0100
commit8c249f650a307097cfb629bd31aefacf40bd00c5 (patch)
tree9a7aa4d444e3ada8cdfa53961e42c399dc78d11b /alot/account.py
parente3638bf2d35f8d0453cc8c6a0530ba94f6bc857b (diff)
fix order
Diffstat (limited to 'alot/account.py')
-rw-r--r--alot/account.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/alot/account.py b/alot/account.py
index 8e4c6f61..a058ccd7 100644
--- a/alot/account.py
+++ b/alot/account.py
@@ -18,7 +18,6 @@ Copyright (C) 2011 Patrick Totzke <patricktotzke@gmail.com>
"""
import mailbox
-import logging
from urlparse import urlparse
from send import SendmailSender
@@ -70,6 +69,7 @@ class AccountManager:
def __init__(self, config):
sections = config.sections()
accountsections = filter(lambda s: s.startswith('account '), sections)
+ self.ordered_addresses = []
for s in accountsections:
options = filter(lambda x: x in self.allowed, config.options(s))
args = {}
@@ -78,9 +78,9 @@ class AccountManager:
if o in self.manditory:
self.manditory.remove(o)
if not self.manditory:
- logging.info(args)
newacc = (Account(**args))
self.accounts[newacc.address] = newacc
+ self.ordered_addresses.append(newacc.address)
else:
pass
# log info
@@ -96,4 +96,4 @@ class AccountManager:
# log info
def get_account_addresses(self):
- return self.accounts.keys()
+ return self.ordered_addresses