basically refactored the email viewer
This commit is contained in:
@@ -59,6 +59,6 @@ def get_access_token(scopes):
|
||||
f.write(cache.serialize())
|
||||
|
||||
access_token = token_response['access_token']
|
||||
headers = {'Authorization': f'Bearer {access_token}', 'Prefer': 'outlook.body-content-type="text"'}
|
||||
headers = {'Authorization': f'Bearer {access_token}', 'Prefer': 'outlook.body-content-type="text",IdType="ImmutableId"'}
|
||||
|
||||
return access_token, headers
|
||||
|
||||
@@ -152,7 +152,7 @@ async def delete_mail_async(maildir_path, headers, progress, task_id, dry_run=Fa
|
||||
progress.console.print(f"[DRY-RUN] Would delete message: {message_id}")
|
||||
progress.advance(task_id)
|
||||
|
||||
async def synchronize_maildir_async(maildir_path, headers, progress, task_id, dry_run=False):
|
||||
async def synchronize_maildir_async(maildir_path, headers, progress, task_id, dry_run=False):
|
||||
"""
|
||||
Synchronize Maildir with Microsoft Graph API.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user