Skip to content
Snippets Groups Projects
Commit f7e4fd91 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Use SMTP-routable Fido/QWK netmail addresses is From header fields

Use the Synchronet-supported FTN/QWKnet routable addressing in the from fields
of messages posted via those network types. Using the mailutil.js
fidoaddr_to_emailaddr() function that was apparently created for listserver.js
but then made unnecessary (and thus unused for several years).

I think this addresses the concerns from issue #487. Reading a message via
NTTP (using the Synchronet NNTP service) in Thunderbird, one can now reply
to sender via email and it "just works" so long as the sysop has configured
the network support for those net-types correctly and Thunderbird is
configured with the Synchronet mail server as its SMTP server to use for that
newsgroup folder. Whether the Synchronet mail server is configured to use
direct delivery or relay is not relevant (though mentioned in the issue
description).
parent b68d0b89
Branches
Tags
No related merge requests found
......@@ -34,6 +34,7 @@ var tagline = format(" * %s - %s - telnet://%s\r\n"
load("sbbsdefs.js");
load("newsutil.js");
load("mailutil.js");
var debug = false;
var no_anonymous = false;
......@@ -757,6 +758,18 @@ while(client.socket.is_connected && !quit) {
writeln(format("From: \"%s\" <%s>"
,hdr.from
,hdr.from_net_addr));
else if(hdr.from_net_type == NET_FIDO)
writeln(format("From: \"%s\" (%s) <%s>"
,hdr.from
,hdr.from_net_addr
,fidoaddr_to_emailaddr(hdr.from, hdr.from_net_addr)));
else if(hdr.from_net_type == NET_QWK)
writeln(format("From: \"%s\" (%s) <%s!%s@%s>"
,hdr.from
,hdr.from_net_addr
,hdr.from_net_addr
,hdr.from.replace(/ /g,".")
,system.inetaddr));
else
writeln(format("From: \"%s\" <%s@%s>"
,hdr.from
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment