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;
};
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"