unsigned file_line;
get_parse_location(file_name, file_line);
- if (file_name != NULL)
+ // FIXIT-L Plz how can same format filename/linenum as ParseWarning
+ if (file_name != NULL)
LogMessage("%s(%d) %s\n", file_name, file_line, buf);
else
LogMessage("%s\n", buf);
unsigned file_line;
get_parse_location(file_name, file_line);
+ // FIXIT-L Why `file_line` here and `file_name` in ParseMessage?
if ( file_line )
LogMessage("WARNING: %s:%d %s\n", file_name, file_line, buf);
else
unsigned file_line;
get_parse_location(file_name, file_line);
+ // FIXIT-L Refer to ParseMessage above.
if (file_name != NULL)
FatalError("%s(%d) %s\n", file_name, file_line, buf);
else
EstimateNumEntries(conf);
if (conf->numEntries <= 0)
{
- LogMessage("WARNING: Can't find any whitelist/blacklist entries. "
+ ParseWarning(WARN_CONF, "Can't find any whitelist/blacklist entries. "
"Reputation Preprocessor disabled.\n");
return true;
}
if ( (conf->priority == WHITELISTED_TRUST) && (conf->whiteAction == UNBLACK) )
{
- LogMessage("WARNING: Keyword \"whitelist\" for \"priority\" is not applied "
- "when white action is unblack.\n");
- conf->priority = WHITELISTED_UNBLACK;
+ ParseWarning(WARN_CONF, "Keyword \"whitelist\" for \"priority\" is "
+ "not applied when white action is unblack.\n");
+ conf->priority = WHITELISTED_UNBLACK;
}
LoadListFile(conf->blacklist_path, conf->local_black_ptr, conf);
{
decode_depth = decode_depth - 4; // FIXIT-L what does this do?
}
- LogMessage("WARNING: IMAP: 'b64_decode_depth' is not a multiple of 4. "
+ ParseWarning(WARN_CONF, "IMAP: 'b64_decode_depth' is not a multiple of 4. "
"Rounding up to the next multiple of 4. The new 'b64_decode_depth' is %d.\n",
decode_depth);
}
{
decode_depth = decode_depth - 4;
}
- LogMessage("WARNING: POP: 'b64_decode_depth' is not a multiple of 4. "
- "Rounding up to the next multiple of 4. The new 'b64_decode_depth' is %d.\n",
+ ParseWarning(WARN_CONF,
+ "POP: 'b64_decode_depth' is not a multiple of 4. "
+ "Rounding up to the next multiple of 4. "
+ "The new 'b64_decode_depth' is %d.\n",
decode_depth);
}
config->decode_conf.set_b64_depth(decode_depth);
{
decode_depth = decode_depth - 4;
}
- LogMessage("WARNING: SMTP: 'b64_decode_depth' is not a multiple of 4. "
+ ParseWarning(WARN_CONF, "SMTP: 'b64_decode_depth' is not a multiple of 4. "
"Rounding up to the next multiple of 4. The new 'b64_decode_depth' is %d.\n",
decode_depth);
}