proper handling of IdleResponse codes

This commit is contained in:
holger krekel
2019-11-19 17:43:32 +01:00
parent eae9ad6f8b
commit fa01884350
2 changed files with 23 additions and 5 deletions

View File

@@ -123,9 +123,14 @@ impl JobThread {
let watch_folder_name = match context.sql.get_raw_config(context, self.folder_config_name) {
Some(name) => name,
None => {
return Err(Error::WatchFolderNotFound(
self.folder_config_name.to_string(),
));
if self.folder_config_name == "configured_inbox_folder" {
// operating on an old database?
"INBOX".to_string()
} else {
return Err(Error::WatchFolderNotFound(
self.folder_config_name.to_string(),
));
}
}
};