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

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
parent 93adfa9a
No related branches found
No related tags found
No related merge requests found
......@@ -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()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment