summaryrefslogtreecommitdiffstats
path: root/template.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2006-11-17 13:44:50 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2006-11-17 13:44:50 +0000
commitb3497a08c81a02e82685160b329761266b3b692c (patch)
tree3aad883298762d6370ed5423332173f521402271 /template.c
parent42c47e4678f9cd49f0f095bb4a41f4c5e6bf57a2 (diff)
downloadrsyslog-b3497a08c81a02e82685160b329761266b3b692c.tar.gz
rsyslog-b3497a08c81a02e82685160b329761266b3b692c.tar.xz
rsyslog-b3497a08c81a02e82685160b329761266b3b692c.zip
property replacer options space-cc and drop-cc added
Diffstat (limited to 'template.c')
-rw-r--r--template.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/template.c b/template.c
index 2cb6b8cc..b749a6bd 100644
--- a/template.c
+++ b/template.c
@@ -212,6 +212,10 @@ static void doOptions(char **pp, struct templateEntry *pTpe)
pTpe->data.field.eCaseConv = tplCaseConvUpper;
} else if(!strcmp(Buf, "escape-cc")) {
pTpe->data.field.options.bEscapeCC = 1;
+ } else if(!strcmp(Buf, "drop-cc")) {
+ pTpe->data.field.options.bDropCC = 1;
+ } else if(!strcmp(Buf, "space-cc")) {
+ pTpe->data.field.options.bSpaceCC = 1;
} else if(!strcmp(Buf, "drop-last-lf")) {
pTpe->data.field.options.bDropLastLF = 1;
} else {
@@ -676,6 +680,12 @@ void tplPrintList(void)
if(pTpe->data.field.options.bEscapeCC) {
dprintf("[escape control-characters] ");
}
+ if(pTpe->data.field.options.bDropCC) {
+ dprintf("[drop control-characters] ");
+ }
+ if(pTpe->data.field.options.bSpaceCC) {
+ dprintf("[replace control-characters with space] ");
+ }
if(pTpe->data.field.options.bDropLastLF) {
dprintf("[drop last LF in msg] ");
}