https://gitlab.synchro.net/main/sbbs/-/commit/96e43fc1e6481bbef9a51dfd
Modified Files:
webmail/lib/blocktags.js
Log Message:
WebMail: blocked address tags can be changed on Windows
0b669450bf (less-3-quick, 2026-11-20) replaced the user's .smtpblock
file with file_rename(), which does not replace an existing file on
Windows: the first tag could be blocked, every change after it failed
with a server error (blocktags.js and api_settings.js failed in the
windows-x86 test job).
The file is now replaced as the mailbox library replaces its files:
rename, and when that fails remove the old file and rename again, a
few times in case the mail server has the file open. On Windows no
tag is blocked for the instant between the remove and the rename.
Verified on Linux only; the Windows test job is the check.
Co-Authored-By: Claude Fable 5.2 <
noreply@anthropic.com>