From 2399947b65df1825414ecf485fa0a93da4c58ea0 Mon Sep 17 00:00:00 2001 From: Ingolf Wagner Date: Fri, 6 Dec 2019 18:21:32 +1300 Subject: [PATCH] mail: download and delete mails from ingolf-wagner.de --- configs/workhorse/mail-fetcher.nix | 35 +++++++++++++++++++++++++++--- 1 file changed, 32 insertions(+), 3 deletions(-) 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"