From 4419e1068aff9e88ed419f6439f577bb0960f7a0 Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Thu, 3 Apr 2008 08:57:44 +0000 Subject: bugfix: $hostname and $fromhost in RainerScript did not work --- msg.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'msg.c') diff --git a/msg.c b/msg.c index 76ea2f72..7c020a61 100644 --- a/msg.c +++ b/msg.c @@ -1606,9 +1606,11 @@ char *MsgGetProp(msg_t *pMsg, struct templateEntry *pTpe, pRes = getRawMsg(pMsg); } else if(!strcmp((char*) pName, "UxTradMsg")) { pRes = getUxTradMsg(pMsg); - } else if(!strcmp((char*) pName, "FROMHOST")) { + } else if( !strcmp((char*) pName, "FROMHOST") + || !strcmp((char*) pName, "fromhost")) { pRes = getRcvFrom(pMsg); } else if(!strcmp((char*) pName, "source") + || !strcmp((char*) pName, "hostname") || !strcmp((char*) pName, "HOSTNAME")) { pRes = getHOSTNAME(pMsg); } else if(!strcmp((char*) pName, "syslogtag")) { -- cgit v1.2.3