(dig,hpk) add test and fix for wrong dbs

This commit is contained in:
holger krekel
2019-07-18 11:16:38 +02:00
parent c7db15352a
commit 7b736fe635
3 changed files with 19 additions and 12 deletions

View File

@@ -558,12 +558,7 @@ impl Imap {
Some(ref mut session) => {
if let Ok(caps) = session.capabilities() {
if !context.sql.is_open() {
warn!(
context,
0,
"IMAP-LOGIN as {} ok but ABORTING",
lp.mail_user,
);
warn!(context, 0, "IMAP-LOGIN as {} ok but ABORTING", lp.mail_user,);
teardown = true;
} else {
let can_idle = caps.has("IDLE");