diff options
author | vrs <none> | 2015-07-30 22:56:42 +0200 |
---|---|---|
committer | Patrick Totzke <patricktotzke@gmail.com> | 2015-12-16 15:51:38 +0000 |
commit | fbceaeff19bea7b1bdb28566d108f4e7f7733b81 (patch) | |
tree | bbae01be3e112e9062caf0e3d6882d3dd01202f4 /alot/account.py | |
parent | 668465c4bea2782d352ab88ba983c6615e94a9a1 (diff) |
add account option alias_regexp
Diffstat (limited to 'alot/account.py')
-rw-r--r-- | alot/account.py | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/alot/account.py b/alot/account.py index 4a62f0b4..0e40a816 100644 --- a/alot/account.py +++ b/alot/account.py @@ -33,6 +33,8 @@ class Account(object): """this accounts main email address""" aliases = [] """list of alternative addresses""" + alias_regexp = [] + """regex matching alternative addresses""" realname = None """real name used to format from-headers""" gpg_key = None @@ -47,13 +49,15 @@ class Account(object): """addressbook (:class:`addressbook.AddressBook`) managing this accounts contacts""" - def __init__(self, address=None, aliases=None, realname=None, - gpg_key=None, signature=None, 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, **rest): + def __init__(self, address=None, aliases=None, alias_regexp=None, + realname=None, gpg_key=None, signature=None, + 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, + **rest): self.address = address self.aliases = aliases + self.alias_regexp = alias_regexp self.realname = realname self.gpg_key = gpg_key self.signature = signature |