28 |
|
|
29 |
#define setbool(a, b, c) \ |
#define setbool(a, b, c) \ |
30 |
do {\ |
do {\ |
31 |
if (strcmp("yes", a) == 0) \ |
if (strcasecmp("yes", a) == 0) \ |
32 |
(b) |= (c); \ |
(b) |= (c); \ |
33 |
else if (strcmp("no", a) == 0) \ |
else if (strcasecmp("no", a) == 0) \ |
34 |
(b) &= ~(c); \ |
(b) &= ~(c); \ |
35 |
else \ |
else \ |
36 |
return RC_KW_ERROR; \ |
return RC_KW_ERROR; \ |
231 |
break; |
break; |
232 |
|
|
233 |
case KW_TERMLEVEL: |
case KW_TERMLEVEL: |
234 |
if (strcmp("silent", arg) == 0) |
if (strcasecmp("silent", arg) == 0) |
235 |
options.termlevel = SILENT; |
options.termlevel = SILENT; |
236 |
else if (strcmp("normal", arg) == 0) |
else if (strcasecmp("normal", arg) == 0) |
237 |
options.termlevel = NORMAL; |
options.termlevel = NORMAL; |
238 |
else if (strcmp("verbose", arg) == 0) |
else if (strcasecmp("verbose", arg) == 0) |
239 |
options.termlevel = VERBOSE; |
options.termlevel = VERBOSE; |
240 |
else if (strcmp("debug", arg) == 0) |
else if (strcasecmp("debug", arg) == 0) |
241 |
options.termlevel = DEBUG; |
options.termlevel = DEBUG; |
242 |
else |
else |
243 |
return RC_KW_ERROR; |
return RC_KW_ERROR; |
262 |
break; |
break; |
263 |
|
|
264 |
case KW_LOGLEVEL: |
case KW_LOGLEVEL: |
265 |
if (strcmp("none", arg) == 0) |
if (strcasecmp("none", arg) == 0) |
266 |
options.uloglevel = NONE; |
options.uloglevel = NONE; |
267 |
else if (strcmp("all", arg) == 0) |
else if (strcasecmp("all", arg) == 0) |
268 |
options.uloglevel = ALL; |
options.uloglevel = ALL; |
269 |
else if (strcmp("fails", arg) == 0) |
else if (strcasecmp("fails", arg) == 0) |
270 |
options.uloglevel = FAILS; |
options.uloglevel = FAILS; |
271 |
else |
else |
272 |
return RC_KW_ERROR; |
return RC_KW_ERROR; |
489 |
|
|
490 |
switch (key) { |
switch (key) { |
491 |
case KW_SIGNATURE_FILE_APPEND: |
case KW_SIGNATURE_FILE_APPEND: |
492 |
message_append_signature_file(msg, arg); |
if (strcasecmp("no", arg)) |
493 |
|
message_append_signature_file(msg); |
494 |
break; |
break; |
495 |
|
|
496 |
case KW_BODY_APPEND: |
case KW_BODY_APPEND: |