From aba2494687cd9781529005d36bc44d7350efd8aa Mon Sep 17 00:00:00 2001 From: "Rob Swindell (on Debian Linux)" <rob@synchro.net> Date: Sat, 1 Feb 2025 13:56:21 -0800 Subject: [PATCH] Use the from_net_addr even if the from_net_type is 0/NONE Since it's technically a "local post", but the user/sysop wants their client- provided email address to appear in the header, use it, if provided (don't use a made-up BBS email address that may not be valid). For Accession --- exec/load/newsutil.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exec/load/newsutil.js b/exec/load/newsutil.js index 028b039c9d..d8a79a3a6b 100755 --- a/exec/load/newsutil.js +++ b/exec/load/newsutil.js @@ -18,7 +18,7 @@ function get_news_subject(hdr) function get_news_from(hdr) { - if(!hdr.from_net_type || !hdr.from_net_addr) /* local message */ + if(!hdr.from_net_addr) /* local message */ return format("\"%s\" <%s@%s>" ,mimehdr.encode(hdr.from) ,hdr.from.replace(/ /g,".").toLowerCase() -- GitLab