From 431237c4d8503826a8c66429ff1f6f9bee8a2629 Mon Sep 17 00:00:00 2001 From: rswindell <> Date: Mon, 3 Jan 2005 05:17:57 +0000 Subject: [PATCH] If the configured "from" address doesn't contain '@', automatically append "@<system.inet_addr>". --- exec/listgate.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/exec/listgate.js b/exec/listgate.js index 78456a0635..009adb78d2 100644 --- a/exec/listgate.js +++ b/exec/listgate.js @@ -83,6 +83,9 @@ for(i in area) { from = area[i].from; + if(from.indexOf('@')<0) // automaticalliy append system's e-mail host/domain name + from+=('@'+system.inet_addr); + msgbase = new MsgBase(sub); if(msgbase.open!=undefined && msgbase.open()==false) { log(LOG_ERR,format("!ERROR %s opening msgbase: %s\r\n",msgbase.last_error,sub)); -- GitLab