You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current code reads the full body in of every part resulting in high memory usage if the email contains big attachments or many instances are running at the same time.
It would be better to build a custom io.Writer buffer or simply return the io.Reader allowing the app to decided to io.Copy, bytes.Buffer, or ReadAll as needed.
The text was updated successfully, but these errors were encountered:
The current code reads the full body in of every part resulting in high memory usage if the email contains big attachments or many instances are running at the same time.
It would be better to build a custom io.Writer buffer or simply return the io.Reader allowing the app to decided to
io.Copy
,bytes.Buffer
, orReadAll
as needed.The text was updated successfully, but these errors were encountered: