diff --git a/configs/workhorse/mail-fetcher.nix b/configs/workhorse/mail-fetcher.nix index c9f1bd8..c810551 100644 --- a/configs/workhorse/mail-fetcher.nix +++ b/configs/workhorse/mail-fetcher.nix @@ -215,7 +215,7 @@ }; notmuch.enable = true; }; - ingolf-wagner = { + ingolf-wagner-de = { primary = false; address = "contact@ingolf-wagner.de"; aliases = [ ]; @@ -227,12 +227,37 @@ port = 143; tls.useStartTls = true; }; - mbsync = { + # make sure the upstream mail is deleted + getmail = { enable = true; - create = "both"; + delete = true; + readAll = false; + mailboxes = [ "ALL" ]; }; + #mbsync = { + # enable = true; + # create = "both"; + #}; notmuch.enable = true; }; + #ingolf-wagner = { + # primary = false; + # address = "contact@ingolf-wagner.de"; + # aliases = [ ]; + # realName = "Ingolf Wagner"; + # userName = "contact@ingolf-wagner.de"; + # passwordCommand = "cat ${toString config.krops.userKeys."siteground.contact".target}"; + # imap = { + # host = "securees5.sgcpanel.com"; + # port = 143; + # tls.useStartTls = true; + # }; + # mbsync = { + # enable = true; + # create = "both"; + # }; + # notmuch.enable = true; + #}; }; }; @@ -249,6 +274,10 @@ echo "run mbsync" ${pkgs.isync}/bin/mbsync \ --all + + echo "run getmail" + ${pkgs.getmail}/bin/getmail getmailingolf-wagner-de + echo "run notmuch" ${pkgs.notmuch}/bin/notmuch new echo "run afew"