dolfim / django-gmailapi-backend

Email backend for Django which sends email via the Gmail API
Apache License 2.0
31 stars 9 forks source link

Take advantage of Batch Requests #1

Closed xblitz closed 3 years ago

xblitz commented 3 years ago
xblitz commented 3 years ago

Let me know if you want this or have any questions/suggestions, I've already used it locally in my project, the batch process works and if any specific mail fails, others will still be sent but raise the last exception, if fail_silently is true, it will return the number of non-failed messages

dolfim commented 3 years ago

Hi @xblitz, I think that using the batch request is a great improvement, thanks. However, I'm not sure about removing gmailapi_backend/bin/gmail_oauth2.py, because (1) it is referenced in the setup.py and the README, (2) it is anyway still required to run once the oauth2 authentication flow and pass the refresh_token .

xblitz commented 3 years ago

Ohhh right, I though it was an some leftover in a commit, actually though it was the google oauth lib, but now I see its the utility to generate tokens and such. Makes sense, and anyway doesn't have anything to do with my PR , let me fix this

xblitz commented 3 years ago

let me know if this is good for you or if you have other concerns :)