Skip to content
Snippets Groups Projects
Commit 203ac545 authored by rswindell's avatar rswindell
Browse files

If the from field contains a valid e-mail address, set the from_net_type too.

parent 8b07ddbc
No related branches found
No related tags found
No related merge requests found
...@@ -106,7 +106,8 @@ function parse_news_header(hdr, line) ...@@ -106,7 +106,8 @@ function parse_news_header(hdr, line)
break; break;
case "from": case "from":
hdr.from = mail_get_name(data); hdr.from = mail_get_name(data);
hdr.from_net_addr = mail_get_address(data); if((hdr.from_net_addr = mail_get_address(data)) != null)
hdr.from_net_type = NET_INTERNET;
break; break;
case "organization": case "organization":
hdr.from_org=data; hdr.from_org=data;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment