From a14e617059d09d31abb689c4dfbd4afbf0ad3183 Mon Sep 17 00:00:00 2001 From: link2xt Date: Sun, 28 Jun 2026 07:42:33 +0000 Subject: [PATCH] feat: remove `?emailaddress` argument from autoconfig URL that is not using a dedicated domain This brings the implementation closer to the specification as it is confirmed that `?emailaddress` should not be included. --- src/configure.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/configure.rs b/src/configure.rs index 680b0ee48..54fc172b8 100644 --- a/src/configure.rs +++ b/src/configure.rs @@ -721,12 +721,12 @@ async fn get_autoconfig( } progress!(ctx, 300); + // `?emailaddress=` query string is excluded on purpose. + // It is not part of the URL according to . + // Related discussion confirming this is at . if let Ok(res) = moz_autoconfigure( ctx, - // the doc does not mention `emailaddress=`, however, Thunderbird adds it, see , which makes some sense - &format!( - "https://{param_domain}/.well-known/autoconfig/mail/config-v1.1.xml?emailaddress={param_addr_urlencoded}" - ), + &format!("https://{param_domain}/.well-known/autoconfig/mail/config-v1.1.xml"), ¶m.addr, accept_invalid_certificates, )