mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-03-01 18:44:01 +08:00
Summary: Previously, we would create a nodemailer SMTP transport object when the sync worker booted up. The transport object would be passed the account SMTP credentials at the time of object creation. If the Google auth token later expired, we would continue to try to send mail using the expired token, resulting in "Invalid login" failures. This patch makes it so we refresh the transport object if the auth token changes, and also turns on SMTP connection pooling to limit simultaneous SMTP connections (& maybe make sending multiple messages faster). Fixes T7891 Test Plan: manual Reviewers: juan, halla Reviewed By: juan, halla Subscribers: mark Maniphest Tasks: T7891 Differential Revision: https://phab.nylas.com/D3997 |
||
---|---|---|
.. | ||
local-api | ||
local-sync-dashboard | ||
local-sync-worker | ||
message-processor | ||
models | ||
shared |