From 58c20184570d4c629e4722d5565af00d48e6c78e Mon Sep 17 00:00:00 2001 From: M66B Date: Sat, 1 Jun 2024 18:27:02 +0200 Subject: [PATCH] Debug SmtpClientAuthentication --- app/src/main/java/eu/faircode/email/FragmentOAuth.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/main/java/eu/faircode/email/FragmentOAuth.java b/app/src/main/java/eu/faircode/email/FragmentOAuth.java index daf32e27cd..0ef47ad225 100644 --- a/app/src/main/java/eu/faircode/email/FragmentOAuth.java +++ b/app/src/main/java/eu/faircode/email/FragmentOAuth.java @@ -914,6 +914,9 @@ public class FragmentOAuth extends FragmentBase { if (!inbound_only && state.length == 1) { EntityLog.log(context, "OAuth checking SMTP provider=" + provider.id); + if (false && BuildConfig.DEBUG) + throw new AuthenticationFailedException("535 5.7.139 Authentication unsuccessful, SmtpClientAuthentication is disabled for the Tenant."); + try (EmailService iservice = new EmailService(context, iprotocol, null, iencryption, false, false, false, EmailService.PURPOSE_CHECK, true)) {