prefer get_config_bool() where appropriate

for db input/output, we still use get_config_int() to convert to/from 0/1.
also for info() we prefer get_config_int() to show the real value.
This commit is contained in:
B. Petersen
2019-10-03 21:41:30 +02:00
committed by Floris Bruynooghe
parent 8dfd04672f
commit 79b92727cc
4 changed files with 14 additions and 21 deletions

View File

@@ -852,9 +852,7 @@ unsafe fn handle_reports(
let mut param = Params::new();
param.set(Param::ServerFolder, server_folder.as_ref());
param.set_int(Param::ServerUid, server_uid as i32);
if mime_parser.is_send_by_messenger
&& 0 != context.get_config_int(Config::MvboxMove)
{
if mime_parser.is_send_by_messenger && context.get_config_bool(Config::MvboxMove) {
param.set_int(Param::AlsoMove, 1);
}
job_add(context, Action::MarkseenMdnOnImap, 0, param, 0);