diff options
author | Patrick Totzke <patricktotzke@gmail.com> | 2012-01-25 14:56:22 +0000 |
---|---|---|
committer | Patrick Totzke <patricktotzke@gmail.com> | 2012-01-25 14:56:22 +0000 |
commit | fa3426c7f5ffaf1f046e831176c5744217f8c9d6 (patch) | |
tree | 207788e7539f69d9cdb05464cd5fa62d8b53202e /alot/account.py | |
parent | 6787e1c6d488483e1fc00888b58725c1d66d8ee1 (diff) |
introduce getter for an accounts addresses
that returns the default address and all aliases
Diffstat (limited to 'alot/account.py')
-rw-r--r-- | alot/account.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/alot/account.py b/alot/account.py index 8b3607d6..c7f0df89 100644 --- a/alot/account.py +++ b/alot/account.py @@ -92,6 +92,11 @@ class Account(object): self.draft_box = mailbox.MMDF(mburl.path) self.draft_tags = draft_tags + def get_addresses(self): + """return all email addresses connected to this account, in order of + their importance""" + return [self.address] + self.aliases + def store_mail(self, mbx, mail, tags=None): """ stores given mail in mailbox. If mailbox is maildir, set the S-flag. |