Omkar008 commited on
Commit
e894775
1 Parent(s): bffe9af

Update controllers/fetch_microsoft_mails.py

Browse files
controllers/fetch_microsoft_mails.py CHANGED
@@ -244,6 +244,8 @@ def extract_attachments_from_mail(access_token: str, message_data: dict) -> List
244
  if filename.endswith(".zip") or filename.endswith(".txt") or filename.endswith(".png") or filename.endswith(".jpg") or filename.endswith(".jpeg") or filename.endswith(".gif"):
245
  continue
246
  attachment_response = requests.get(f'https://graph.microsoft.com/v1.0/me/messages/{message_id}/attachments/{attachment_id}/$value', headers=headers)
 
 
247
  data = attachment_response.content
248
  print("Printing attachment Data")
249
  print(data)
 
244
  if filename.endswith(".zip") or filename.endswith(".txt") or filename.endswith(".png") or filename.endswith(".jpg") or filename.endswith(".jpeg") or filename.endswith(".gif"):
245
  continue
246
  attachment_response = requests.get(f'https://graph.microsoft.com/v1.0/me/messages/{message_id}/attachments/{attachment_id}/$value', headers=headers)
247
+ print("Attachment Response")
248
+ print(attachment_response)
249
  data = attachment_response.content
250
  print("Printing attachment Data")
251
  print(data)