From 3a78ab4ffa1a0e4d0628813b868ad7b6cd7817e3 Mon Sep 17 00:00:00 2001 From: rswindell <> Date: Fri, 1 May 2020 00:10:07 +0000 Subject: [PATCH] Set the "LOCAL" network-attribute on locally-created Internet email messages (no use currently, but seems prudent). Set the KILLSENT network attribute for created Internet email messages when enabled in SCFG->Networks->Internet (new option). --- src/sbbs3/netmail.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/sbbs3/netmail.cpp b/src/sbbs3/netmail.cpp index a28283a93c..de4f4bbd11 100644 --- a/src/sbbs3/netmail.cpp +++ b/src/sbbs3/netmail.cpp @@ -1106,6 +1106,10 @@ bool sbbs_t::inetmail(const char *into, const char *subj, long mode, smb_t* resm msg.hdr.when_written.time=msg.hdr.when_imported.time=time32(NULL); msg.hdr.when_written.zone=msg.hdr.when_imported.zone=sys_timezone(&cfg); + msg.hdr.netattr |= MSG_LOCAL; + if(cfg.inetmail_misc&NMAIL_KILL) + msg.hdr.netattr |= MSG_KILLSENT; + if(rcpt_count > 1) smb_hfield_str(&msg, RECIPIENTLIST, to_list); -- GitLab