Skip to content

Commit 392e90c

Browse files
committed
made output message more specific
1 parent 8c4b1a4 commit 392e90c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Attachment_Downloader/attachment.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ def attachmentdownload(resulthreads):
2424
resulthreads = ezgmail.search(newquery) # search functions accepts all the operators described at https://support.google.com/mail/answer/7190?hl=en
2525

2626
if len(resulthreads) == 0:
27-
print("Result has no attachments") # Executed if results don't have attachment
27+
print("Result has no attachments:") # Executed if results don't have attachment
2828
else:
29-
print("Result(s): ")
29+
print("Result(s) with attachments:")
3030
for threads in resulthreads:
3131
print(f"Email Subject: {threads.messages[0].subject}") # prints the subject line of email thread in results
3232
try:

Attachment_Downloader/token.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"access_token": "ya29.a0AfH6SMD8DyPYCFTJf7BhOwGEoo59dmruTK1_VEjH23ESyxyONhGYnqEZCRRKId6wMe93a-jRwAzryCcYoH8sM4HOZuf0Em3mudNCS3zG_MzjGNDQS_axcF5J68XqS2GNVz8w8NyLa-qr33VvMKL1yReek0s-vw", "client_id": "1004827760520-vhe76mj8bnhl2djbi911hul9ebiuar5p.apps.googleusercontent.com", "client_secret": "jiOeNPFSLKb6TeAGge-Fta-5", "refresh_token": "1//0grs3VlWC1FgpCgYIARAAGBASNwF-L9Ir6d_ihrdvKysfTi86Eqv2w18XTWSxi8x8GHHBoeZjm_viWL3RT7qr45a4KIhYoLMbvd4", "token_expiry": "2021-03-16T11:52:35Z", "token_uri": "https://oauth2.googleapis.com/token", "user_agent": null, "revoke_uri": "https://oauth2.googleapis.com/revoke", "id_token": null, "id_token_jwt": null, "token_response": {"access_token": "ya29.a0AfH6SMD8DyPYCFTJf7BhOwGEoo59dmruTK1_VEjH23ESyxyONhGYnqEZCRRKId6wMe93a-jRwAzryCcYoH8sM4HOZuf0Em3mudNCS3zG_MzjGNDQS_axcF5J68XqS2GNVz8w8NyLa-qr33VvMKL1yReek0s-vw", "expires_in": 3599, "scope": "https://mail.google.com/", "token_type": "Bearer"}, "scopes": ["https://mail.google.com/"], "token_info_uri": "https://oauth2.googleapis.com/tokeninfo", "invalid": false, "_class": "OAuth2Credentials", "_module": "oauth2client.client"}
1+
{"access_token": "ya29.a0AfH6SMCzkE5-xyfKaHz_EKnhKeBvc3oFeWYciu2MxZK70mXy7JbR32l0dnRwNtlWZxyMBaOV10XTkeJqIbWb8z5cUIA2YiiL3KXzt5E41Wx327cZbgU3C0yx1zAtoWlw98V_HjmSOPW7wP8HZlUrcdHKeuzEpA", "client_id": "1004827760520-vhe76mj8bnhl2djbi911hul9ebiuar5p.apps.googleusercontent.com", "client_secret": "jiOeNPFSLKb6TeAGge-Fta-5", "refresh_token": "1//0grs3VlWC1FgpCgYIARAAGBASNwF-L9Ir6d_ihrdvKysfTi86Eqv2w18XTWSxi8x8GHHBoeZjm_viWL3RT7qr45a4KIhYoLMbvd4", "token_expiry": "2021-03-16T13:49:30Z", "token_uri": "https://oauth2.googleapis.com/token", "user_agent": null, "revoke_uri": "https://oauth2.googleapis.com/revoke", "id_token": null, "id_token_jwt": null, "token_response": {"access_token": "ya29.a0AfH6SMCzkE5-xyfKaHz_EKnhKeBvc3oFeWYciu2MxZK70mXy7JbR32l0dnRwNtlWZxyMBaOV10XTkeJqIbWb8z5cUIA2YiiL3KXzt5E41Wx327cZbgU3C0yx1zAtoWlw98V_HjmSOPW7wP8HZlUrcdHKeuzEpA", "expires_in": 3599, "scope": "https://mail.google.com/", "token_type": "Bearer"}, "scopes": ["https://mail.google.com/"], "token_info_uri": "https://oauth2.googleapis.com/tokeninfo", "invalid": false, "_class": "OAuth2Credentials", "_module": "oauth2client.client"}

0 commit comments

Comments
 (0)