diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml
index 94d74d96..a02c3930 100644
--- a/.github/ISSUE_TEMPLATE/bug_report.yml
+++ b/.github/ISSUE_TEMPLATE/bug_report.yml
@@ -2,8 +2,6 @@ name: I think I found a bug
description: File a bug report issue
title: "[bug]: "
labels: ["bug"]
-assignees:
- - mdecimus
body:
- type: markdown
attributes:
diff --git a/.github/ISSUE_TEMPLATE/feature_request.yml b/.github/ISSUE_TEMPLATE/feature_request.yml
index 6a033d93..63ea268b 100644
--- a/.github/ISSUE_TEMPLATE/feature_request.yml
+++ b/.github/ISSUE_TEMPLATE/feature_request.yml
@@ -2,8 +2,6 @@ name: I have a feature request
description: File a feature request issue
title: "[enhancement]: "
labels: ["enhancement"]
-assignees:
- - mdecimus
body:
- type: markdown
attributes:
diff --git a/Cargo.lock b/Cargo.lock
index 899cd522..437c9907 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1438,6 +1438,7 @@ dependencies = [
"rustls 0.22.1",
"rustls-pki-types",
"scrypt",
+ "serde",
"sha1",
"sha2 0.10.8",
"smtp-proto",
diff --git a/crates/directory/Cargo.toml b/crates/directory/Cargo.toml
index c3a86da5..a03d9965 100644
--- a/crates/directory/Cargo.toml
+++ b/crates/directory/Cargo.toml
@@ -33,6 +33,7 @@ sha2 = "0.10.6"
md5 = "0.7.0"
futures = "0.3"
regex = "1.7.0"
+serde = { version = "1.0", features = ["derive"]}
[dev-dependencies]
tokio = { version = "1.23", features = ["full"] }
diff --git a/crates/directory/src/backend/imap/lookup.rs b/crates/directory/src/backend/imap/lookup.rs
index 2208884e..53a642f5 100644
--- a/crates/directory/src/backend/imap/lookup.rs
+++ b/crates/directory/src/backend/imap/lookup.rs
@@ -23,16 +23,15 @@
use mail_send::Credentials;
use smtp_proto::{AUTH_CRAM_MD5, AUTH_LOGIN, AUTH_OAUTHBEARER, AUTH_PLAIN, AUTH_XOAUTH2};
-use store::Store;
-use crate::{Directory, DirectoryError, Principal, QueryBy, QueryType};
+use crate::{Directory, DirectoryError, Principal, QueryBy};
use super::{ImapDirectory, ImapError};
#[async_trait::async_trait]
impl Directory for ImapDirectory {
- async fn query(&self, query: QueryBy<'_>) -> crate::Result