Return OK after a successful ManageSieve SASL authentication flow (fixes #187)
This commit is contained in:
@@ -88,8 +88,6 @@ async fn train(ctx: PluginContext<'_>, is_train: bool) -> Variable {
|
||||
return false.into();
|
||||
}
|
||||
|
||||
let c = println!("training: {:?} {}", text, is_spam);
|
||||
|
||||
// Train the model
|
||||
let mut model = BayesModel::default();
|
||||
model.train(
|
||||
|
||||
@@ -158,6 +158,9 @@ impl<T: SessionStream> Session<T> {
|
||||
in_flight,
|
||||
};
|
||||
|
||||
let _ = self
|
||||
.write(&StatusResponse::ok("Authentication successful").into_bytes())
|
||||
.await;
|
||||
self.handle_capability("Authentication successful").await
|
||||
} else {
|
||||
match &self.state {
|
||||
|
||||
Reference in New Issue
Block a user