2023-09-04 08:53:41 +01:00
|
|
|
{ pkgs, hostName, ... }:
|
2023-09-02 08:41:07 +01:00
|
|
|
|
|
|
|
{
|
2023-09-25 13:42:13 +01:00
|
|
|
home.packages = with pkgs; [ protonmail-bridge ];
|
2023-09-02 08:41:07 +01:00
|
|
|
programs = {
|
2023-09-25 17:59:40 +01:00
|
|
|
mbsync = {
|
|
|
|
enable = true;
|
|
|
|
groups.inboxes = {
|
|
|
|
proton = [ "INBOX" ];
|
|
|
|
icloud = [ "INBOX" ];
|
|
|
|
};
|
|
|
|
};
|
2023-09-14 11:56:26 +01:00
|
|
|
msmtp.enable = true;
|
2023-09-14 17:09:21 +01:00
|
|
|
mu.enable = true;
|
|
|
|
};
|
|
|
|
services.mbsync = {
|
2023-09-25 17:59:40 +01:00
|
|
|
enable = false;
|
|
|
|
frequency = "*-*-* *:0/30:00";
|
|
|
|
};
|
|
|
|
accounts.email = {
|
|
|
|
maildirBasePath = ".mail";
|
|
|
|
accounts = let realName = "Evie Litherland-Smith";
|
|
|
|
in {
|
|
|
|
proton = let
|
|
|
|
host = "127.0.0.1";
|
|
|
|
tls.enable = false;
|
|
|
|
in rec {
|
|
|
|
inherit realName;
|
|
|
|
maildir.path = "Proton";
|
|
|
|
imap = {
|
|
|
|
inherit host tls;
|
|
|
|
port = 1143;
|
|
|
|
};
|
|
|
|
smtp = {
|
|
|
|
inherit host tls;
|
|
|
|
port = 1025;
|
|
|
|
};
|
|
|
|
address = "e.litherlandsmith@proton.me";
|
|
|
|
aliases = [ "evie@xenia.me.uk" "evie@litherlandsmith.slmail.me" ];
|
|
|
|
passwordCommand = "${pkgs.pass}/bin/pass show Mail/Proton/${hostName}";
|
|
|
|
primary = true;
|
|
|
|
userName = address;
|
|
|
|
mbsync = {
|
|
|
|
enable = true;
|
|
|
|
create = "both";
|
|
|
|
expunge = "both";
|
|
|
|
remove = "both";
|
|
|
|
patterns = [ "*" "!All Mail" "!Spam" "!Labels" "!Starred" ];
|
|
|
|
subFolders = "Verbatim";
|
|
|
|
extraConfig.account.AuthMechs = "LOGIN";
|
|
|
|
};
|
|
|
|
msmtp = {
|
|
|
|
enable = true;
|
|
|
|
extraConfig = {
|
|
|
|
tls = "off";
|
|
|
|
auth = "login";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
mu.enable = true;
|
|
|
|
};
|
|
|
|
icloud = rec {
|
|
|
|
inherit realName;
|
|
|
|
maildir.path = "iCloud";
|
|
|
|
imap.host = "imap.mail.me.com";
|
|
|
|
smtp.host = "smtp.mail.me.com";
|
|
|
|
address = "e.litherlandsmith@icloud.com";
|
|
|
|
passwordCommand = "${pkgs.pass}/bin/pass show Mail/iCloud/mbsync";
|
|
|
|
userName = address;
|
|
|
|
mbsync = {
|
|
|
|
enable = true;
|
|
|
|
create = "both";
|
|
|
|
expunge = "both";
|
|
|
|
remove = "both";
|
|
|
|
patterns = [ "*" "!Junk" ];
|
|
|
|
subFolders = "Verbatim";
|
|
|
|
};
|
|
|
|
msmtp.enable = true;
|
|
|
|
mu.enable = true;
|
|
|
|
};
|
|
|
|
};
|
2023-09-02 08:41:07 +01:00
|
|
|
};
|
|
|
|
}
|