IMAP: GETJMAPACCESS command to discover the JMAP session resource URL (closes #2736)

This commit is contained in:
Maurus Decimus
2026-06-19 18:16:40 +02:00
parent cff46f26d4
commit 4fd86298fa
8 changed files with 60 additions and 4 deletions

View File

@@ -232,6 +232,13 @@ pub async fn imap_tests() {
imap.authenticate(account.name(), account.secret()).await;
}
// Test GETJMAPACCESS (RFC 9698)
imap.send("GETJMAPACCESS").await;
imap.assert_read(Type::Tagged, ResponseType::Ok)
.await
.assert_contains("* JMAPACCESS \"")
.assert_contains("/.well-known/jmap\"");
// Delete folders
for mailbox in ["Drafts", "Junk Mail", "Sent Items"] {
imap.send(&format!("DELETE \"{}\"", mailbox)).await;