aboutsummaryrefslogtreecommitdiffstats
path: root/python/exchange.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/exchange.py')
-rw-r--r--python/exchange.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/python/exchange.py b/python/exchange.py
index 23943c4f..d341cacb 100644
--- a/python/exchange.py
+++ b/python/exchange.py
@@ -2,6 +2,7 @@ from exchangelib import Credentials, Configuration, Account, DELEGATE
from pathlib import Path
import json
+
def get_account(email_address):
with open(Path('.credentials') / (email_address + '.json')) as fh:
creds = json.load(fh)
@@ -10,8 +11,9 @@ def get_account(email_address):
return Account(primary_smtp_address=email_address, config=config,
autodiscover=False, access_type=DELEGATE)
-def get_msgs(account=None, email_address='ghorel@lmcg.com', count=None, path=['GS', 'Swaptions'],
- subject_filter=None):
+
+def get_msgs(account=None, email_address='ghorel@lmcg.com', count=None,
+ path=['GS', 'Swaptions'], subject_filter=None):
if account is None:
account = get_account(email_address)
folder = account.inbox