feat: read SMTP recipient limit from relay IMAP metadata

Remove is_chatmail flag, and rely on IMAP metadata
advertising the recipients limit (usually 1000),
falling back to 50 (or fewer in some exceptional cases)
just as before when is_chatmail was false.

Also, server metadata is now keyed per transport,
which in the future eases collecting ICE servers
from all relays (instead of just any first relay).
This commit is contained in:
holger krekel
2026-05-08 22:06:18 +02:00
parent 3a913dfb07
commit 0e4574cd41
10 changed files with 97 additions and 63 deletions

View File

@@ -253,7 +253,6 @@ async fn test_empty_server_list() -> Result<()> {
assert_eq!(loaded.provider, Some(*provider));
assert_eq!(loaded.imap.is_empty(), false);
assert_eq!(loaded.smtp.is_empty(), false);
assert_eq!(t.get_configured_provider().await?, Some(*provider));
Ok(())
}