mail: download and delete mails from ingolf-wagner.de

This commit is contained in:
Ingolf Wagner 2019-12-06 18:21:32 +13:00
parent 226ece4662
commit 2399947b65
No known key found for this signature in database
GPG key ID: 76BF5F1928B9618B

View file

@ -215,7 +215,7 @@
}; };
notmuch.enable = true; notmuch.enable = true;
}; };
ingolf-wagner = { ingolf-wagner-de = {
primary = false; primary = false;
address = "contact@ingolf-wagner.de"; address = "contact@ingolf-wagner.de";
aliases = [ ]; aliases = [ ];
@ -227,12 +227,37 @@
port = 143; port = 143;
tls.useStartTls = true; tls.useStartTls = true;
}; };
mbsync = { # make sure the upstream mail is deleted
getmail = {
enable = true; enable = true;
create = "both"; delete = true;
readAll = false;
mailboxes = [ "ALL" ];
}; };
#mbsync = {
# enable = true;
# create = "both";
#};
notmuch.enable = true; 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" echo "run mbsync"
${pkgs.isync}/bin/mbsync \ ${pkgs.isync}/bin/mbsync \
--all --all
echo "run getmail"
${pkgs.getmail}/bin/getmail getmailingolf-wagner-de
echo "run notmuch" echo "run notmuch"
${pkgs.notmuch}/bin/notmuch new ${pkgs.notmuch}/bin/notmuch new
echo "run afew" echo "run afew"