![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
Branch: refs/heads/master Home: https://github.com/dreamwidth/dw-free Commit: 7ad114dd754c23accc69d4628ac3f74d11cc52b2 https://github.com/dreamwidth/dw-free/commit/7ad114dd754c23accc69d4628ac3f74d11cc52b2 Author: Mark Smith mark@dreamwidth.org Date: 2022-01-07 (Fri, 07 Jan 2022)
Changed paths: M cgi-bin/DW/Task/SendEmail.pm
Log Message:
Fix email sending duplication logic
The 'don't duplicate emails' logic was too conservative. If we hit a transient error later sending the email (which happens all the time), then we would never actually retry because we set the key too early.
This fixes it to move setting the MemCache bit until the very end of the email flow. This means there's a tiny risk of us duplicating an email, but this does make it more of an at-least-once system (rather than an at-most-once system, which is not great for email.)