From 203ac545af855cec26dd0b8591896fd5b142cba9 Mon Sep 17 00:00:00 2001
From: rswindell <>
Date: Sun, 24 Feb 2008 18:57:07 +0000
Subject: [PATCH] If the from field contains a valid e-mail address, set the
 from_net_type too.

---
 exec/load/newsutil.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/exec/load/newsutil.js b/exec/load/newsutil.js
index df521741af..9227001881 100644
--- a/exec/load/newsutil.js
+++ b/exec/load/newsutil.js
@@ -106,7 +106,8 @@ function parse_news_header(hdr, line)
 			break;
 		case "from":
 			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;
 		case "organization":
 			hdr.from_org=data;
-- 
GitLab