IMAP: GETJMAPACCESS command to discover the JMAP session resource URL (closes #2736)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user