mail: download and delete mails from ingolf-wagner.de
This commit is contained in:
parent
226ece4662
commit
2399947b65
1 changed files with 32 additions and 3 deletions
|
@ -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"
|
||||||
|
|
Loading…
Reference in a new issue