From ba69aa639557cc57c6a07324567644eef2559e3b Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Wed, 8 Dec 2004 09:31:30 +0000 Subject: property option drop-last-lf added; some doc in test.conf --- template.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'template.c') diff --git a/template.c b/template.c index 85829c27..73b7bcf8 100644 --- a/template.c +++ b/template.c @@ -207,6 +207,10 @@ static void doOptions(char **pp, struct templateEntry *pTpe) pTpe->data.field.eCaseConv = tplCaseConvLower; } else if(!strcmp(Buf, "uppercase")) { pTpe->data.field.eCaseConv = tplCaseConvUpper; + } else if(!strcmp(Buf, "escape-cc")) { + pTpe->data.field.options.bEscapeCC = 1; + } else if(!strcmp(Buf, "drop-last-lf")) { + pTpe->data.field.options.bDropLastLF = 1; } else { dprintf("Invalid field option '%s' specified - ignored.\n", Buf); } @@ -488,6 +492,12 @@ void tplPrintList(void) dprintf("[Converted to Upper Case] "); break; } + if(pTpe->data.field.options.bEscapeCC) { + dprintf("[escape control-characters] "); + } + if(pTpe->data.field.options.bDropLastLF) { + dprintf("[drop last LF in msg] "); + } if(pTpe->data.field.iFromPos != 0 || pTpe->data.field.iToPos != 0) { dprintf("[substring, from character %d to %d] ", -- cgit