https://gitlab.synchro.net/main/sbbs/-/commit/14807b8351cb66dfbc186546
Modified Files:
src/sbbs3/mailsrvr.c mailsrvr.h sbbs_ini.c src/sbbs3/scfg/scfgsrvr.c Log Message:
Optionally archive SMTP-received mail messages to/from specified users
Messages are stored verbatim, in .eml file format (but post-mailproc modification, if any) in
data/user/####/smtp_in (i.e. "inbox") or data/user/####/smtp_relay
(i.e. "outbox") depending on whether the mail was being received for relay to another SMTP server or for delivery to a local user. The files are named
"<ISO-UTC-timestamp>-<session-id>.eml"
So the files will naturally sort chronologically (at one-second granularity). The files should be readable by most any mail reader program.
The default configuration (SCFG->Servers->Mail Server->Archive Requirements)
is blank/empty, so no archiving will happen. The sysop can set this to any
ARS that identifies the user or users they want to archive mail messages for.
There's no "clean-up" of archived messages, other than when a new user takes over an existing deleted-user slot number, implemented (at least, not yet),
so the archived messages could consume an unbounded amount of disk space (caveat emptor). Since SPAM is currently being archived too, we might want
to exclude spam-tagged messages from being archived to reduce this concern.
Addresses issue #969
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net