IMAP fixes

This commit is contained in:
mdecimus
2024-01-01 18:09:21 +01:00
parent 659a3aa317
commit 572ae9b44b
10 changed files with 149 additions and 59 deletions

View File

@@ -74,7 +74,7 @@ pub async fn test(imap: &mut ImapConnection, _imap_check: &mut ImapConnection) {
"\"quoted-printable\" 228 3 \"3a942a99cdd8a099ae107d3867ec20fb\" NIL NIL NIL)",
"(\"image\" \"gif\" (\"name\" \"Book about ☕ tables.gif\") ",
"NIL NIL \"Base64\" 56 \"d40fa7f401e9dc2df56cbb740d65ff52\" ",
"(\"attachment\" ()) NIL NIL) \"mixed\" (\"boundary\" \"giddyup\") NIL NIL NIL)",
"(\"attachment\" NIL) NIL NIL) \"mixed\" (\"boundary\" \"giddyup\") NIL NIL NIL)",
" 0 \"cdb0382a03a15601fb1b3c7422521620\" NIL NIL NIL) ",
"\"mixed\" (\"boundary\" \"festivus\") NIL NIL NIL)"
));

View File

@@ -162,6 +162,7 @@ type = "elasticsearch"
url = "https://localhost:9200"
user = "elastic"
password = "RtQ-Lu6+o4rxx=XJplVJ"
disable = true
[store."elastic".tls]
allow-invalid-certs = true
@@ -170,6 +171,9 @@ allow-invalid-certs = true
cert = "file://{CERT}"
private-key = "file://{PK}"
[imap.protocol]
uidplus = true
[jmap]
directory = "auth"
@@ -319,7 +323,6 @@ async fn init_imap_tests(store_id: &str, delete_if_exists: bool) -> IMAPTest {
lookup
.create_test_user("admin", "secret", "Superuser")
.await;
lookup.add_to_group("admin", "superuser").await;
lookup
.create_test_user_with_email("jdoe@example.com", "secret", "John Doe")
.await;