https://gitlab.synchro.net/main/sbbs/-/commit/7a7847231f91cb2165ec7a15
Modified Files:
docs/v322_new.md src/sbbs3/getmail.c mailsrvr.cpp userdat.c userdat.h Log Message:
Mail Server: mark the original "Replied" when a user replies by SMTP
A reply sent from the Terminal Server or WebMail sets MSG_REPLIED on the message it answers, but one sent from an outside mail client over SMTP
didn't, so users of POP3 clients (which have no flags) never saw what they
had answered, and nothing else on the system could tell either.
After an authenticated user's message is stored, take the first
Message-ID in its In-Reply-To header and set MSG_REPLIED on each message
with that ID that belongs to the user: in their Inbox (data/mail,
addressed to them) and in their WebMail mailbox (data/user/####/mailbox,
not sent by them). Unauthenticated mail marks nothing, and a user can only
mark their own mail.
E-mail bases keep no Message-ID hashes, so the lookup reads the user's
index entries and their headers (#1460 would make it a hash lookup).
The private mailbox base's path now comes from mailbox_filename() in
userdat.c, which getmail.c's quota code also uses.
Co-Authored-By: Claude Opus 5.5 <
noreply@anthropic.com>
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net