summaryrefslogtreecommitdiff
path: root/alot/commands/thread.py
diff options
context:
space:
mode:
authorBen Finney <ben+python@benfinney.id.au>2018-04-23 16:30:28 +1000
committerBen Finney <ben@benfinney.id.au>2018-04-23 19:54:46 +1000
commit018279b18e7c95b40d94a09fc68fa3b3aa1fc6b0 (patch)
tree219ede6fac37dfa3a35027dfef75c68ac689c409 /alot/commands/thread.py
parent950839f390dbdcd285ceae86b7ddeb4ce62a50d4 (diff)
Wrap long statements on open-bracket syntax.
Diffstat (limited to 'alot/commands/thread.py')
-rw-r--r--alot/commands/thread.py13
1 files changed, 10 insertions, 3 deletions
diff --git a/alot/commands/thread.py b/alot/commands/thread.py
index a6380ac9..6a631e62 100644
--- a/alot/commands/thread.py
+++ b/alot/commands/thread.py
@@ -72,13 +72,16 @@ def determine_sender(mail, action='reply'):
# pick the most important account that has an address in candidates
# and use that accounts realname and the address found here
for account in my_accounts:
- acc_addresses = [re.escape(str(a)) for a in account.get_addresses()]
+ acc_addresses = [
+ re.escape(str(a)) for a in account.get_addresses()]
if account.alias_regexp is not None:
acc_addresses.append(account.alias_regexp)
for alias in acc_addresses:
regex = re.compile(
u'^' + str(alias) + u'$',
- flags=re.IGNORECASE if not account.address.case_sensitive else 0)
+ flags=(
+ re.IGNORECASE if not account.address.case_sensitive
+ else 0))
for seen_name, seen_address in candidate_addresses:
if regex.match(seen_address):
logging.debug("match!: '%s' '%s'", seen_address, alias)
@@ -241,7 +244,11 @@ class ReplyCommand(Command):
# Reply-To is standart reply target RFC 2822:, RFC 1036: 2.2.1
# X-BeenThere is needed by sourceforge ML also winehq
# X-Mailing-List is also standart and is used by git-send-mail
- to = mail['Reply-To'] or mail['X-BeenThere'] or mail['X-Mailing-List']
+ to = (
+ mail['Reply-To']
+ or mail['X-BeenThere']
+ or mail['X-Mailing-List']
+ )
# Some mail server (gmail) will not resend you own mail, so you
# have to deal with the one in sent
if to is None: