Skip to content

Commit 8fe82ba

Browse files
committed
Removed unused main
1 parent 82ba10a commit 8fe82ba

File tree

1 file changed

+0
-23
lines changed
  • ITK_dev_shared_components/graph

1 file changed

+0
-23
lines changed

ITK_dev_shared_components/graph/mail.py

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -317,26 +317,3 @@ def _get_request(endpoint: str, graph_access: GraphAccess) -> requests.models.Re
317317
response.raise_for_status()
318318

319319
return response
320-
321-
322-
if __name__ == '__main__':
323-
import os, json, authentication
324-
def main():
325-
credentials = json.loads(os.environ['GraphAPI'])
326-
client_id = credentials['client_id']
327-
tenant_id = credentials['tenant_id']
328-
username = credentials['username']
329-
password = credentials['password']
330-
331-
graph_access = authentication.authorize_by_username_password(username, password, client_id=client_id, tenant_id=tenant_id)
332-
333-
emails = get_emails_from_folder("itk-rpa@mkb.aarhus.dk", "Indbakke/Graph Test/Undermappe", graph_access)
334-
email = emails[0]
335-
336-
print(repr(email.get_text()))
337-
338-
# move_email(email, "Indbakke/Graph Test/Undermappe2", graph_access)
339-
340-
# list_email_attachments(email, graph_access)
341-
342-
main()

0 commit comments

Comments
 (0)