From 5129e0a933813b4cce41e336bc2d3b9881a237bd Mon Sep 17 00:00:00 2001 From: Tyler Beckman Date: Sat, 28 Dec 2024 21:13:08 -0700 Subject: [PATCH] Fix thunderbird support for school email --- home-manager/config/accounts/email.nix | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/home-manager/config/accounts/email.nix b/home-manager/config/accounts/email.nix index 925b4ff..74557ee 100755 --- a/home-manager/config/accounts/email.nix +++ b/home-manager/config/accounts/email.nix @@ -70,13 +70,22 @@ address = "tyler_beckman@mines.edu"; userName = address; flavor = "outlook.office365.com"; - + folders = { inbox = "Inbox"; drafts = "Drafts"; sent = "Sent Items"; trash = "Trash"; }; + + thunderbird = { + enable = config.meta.home-manager.email.thunderbird.enable; + # Manually set oauth2 as the authentication method (home-manager does not have proper support) + settings = id: { + "mail.smtpserver.smtp_${id}.authMethod" = 10; + "mail.server.server_${id}.authMethod" = 10; + }; + }; }; }; -} \ No newline at end of file +}