mail improvements
This commit is contained in:
parent
0efadc588d
commit
2abf05bc0f
5 changed files with 171 additions and 129 deletions
nixos/system/desktop
|
|
@ -5,6 +5,7 @@ let
|
|||
|
||||
in
|
||||
{
|
||||
|
||||
# Maildir <-> Server communication
|
||||
# --------------------------------
|
||||
# mbsync: MailDir <-> IMAP
|
||||
|
|
@ -20,48 +21,45 @@ in
|
|||
# neomutt
|
||||
|
||||
home-manager.users.mainUser.accounts.email.accounts = {
|
||||
palo_van_dalo-gmx = {
|
||||
primary = false;
|
||||
address = "palo_van_dalo@gmx.de";
|
||||
aliases = [ ];
|
||||
realName = "Ingolf Wagner";
|
||||
userName = "palo_van_dalo@gmx.de";
|
||||
passwordCommand = passcmd "mail/gmx/palo_van_dalo@gmx.de";
|
||||
smtp = {
|
||||
host = "smtp.gmx.net";
|
||||
port = 465;
|
||||
};
|
||||
notmuch.enable = true;
|
||||
msmtp = { enable = true; };
|
||||
};
|
||||
ingolf-wagner-gmx = {
|
||||
primary = false;
|
||||
address = "ingolf.wagner@gmx.de";
|
||||
aliases = [ ];
|
||||
realName = "Ingolf Wagner";
|
||||
userName = "ingolf.wagner@gmx.de";
|
||||
passwordCommand = passcmd "mail/gmx/ingolf.wagner@gmx.de";
|
||||
smtp = {
|
||||
host = "smtp.gmx.net";
|
||||
port = 465;
|
||||
};
|
||||
notmuch.enable = true;
|
||||
msmtp = { enable = true; };
|
||||
};
|
||||
pali_palo = {
|
||||
primary = false;
|
||||
address = "pali_palo@web.de";
|
||||
aliases = [ ];
|
||||
realName = "Ingolf Wagner";
|
||||
userName = "pali_palo@web.de";
|
||||
passwordCommand = passcmd "mail/web.de/pali_palo@web.de";
|
||||
smtp = {
|
||||
host = "smtp.web.de";
|
||||
port = 465;
|
||||
};
|
||||
notmuch.enable = true;
|
||||
msmtp = { enable = true; };
|
||||
};
|
||||
#palo_van_dalo-gmx = {
|
||||
# address = "palo_van_dalo@gmx.de";
|
||||
# aliases = [ ];
|
||||
# realName = "Ingolf Wagner";
|
||||
# userName = "palo_van_dalo@gmx.de";
|
||||
# passwordCommand = passcmd "mail/gmx/palo_van_dalo@gmx.de";
|
||||
# smtp = {
|
||||
# host = "smtp.gmx.net";
|
||||
# port = 465;
|
||||
# };
|
||||
# notmuch.enable = true;
|
||||
# msmtp = { enable = true; };
|
||||
#};
|
||||
#ingolf-wagner-gmx = {
|
||||
# address = "ingolf.wagner@gmx.de";
|
||||
# aliases = [ ];
|
||||
# realName = "Ingolf Wagner";
|
||||
# userName = "ingolf.wagner@gmx.de";
|
||||
# passwordCommand = passcmd "mail/gmx/ingolf.wagner@gmx.de";
|
||||
# smtp = {
|
||||
# host = "smtp.gmx.net";
|
||||
# port = 465;
|
||||
# };
|
||||
# notmuch.enable = true;
|
||||
# msmtp = { enable = true; };
|
||||
#};
|
||||
#pali_palo = {
|
||||
# address = "pali_palo@web.de";
|
||||
# aliases = [ ];
|
||||
# realName = "Ingolf Wagner";
|
||||
# userName = "pali_palo@web.de";
|
||||
# passwordCommand = passcmd "mail/web.de/pali_palo@web.de";
|
||||
# smtp = {
|
||||
# host = "smtp.web.de";
|
||||
# port = 465;
|
||||
# };
|
||||
# notmuch.enable = true;
|
||||
# msmtp = { enable = true; };
|
||||
#};
|
||||
gmail = {
|
||||
# for google accounts you have to allow 'less secure apps' in accounts.google.com
|
||||
primary = true;
|
||||
|
|
@ -77,7 +75,6 @@ in
|
|||
notmuch.enable = true;
|
||||
msmtp = {
|
||||
enable = true;
|
||||
# msmtp --serverinfo --tls --tls-certcheck=off -a gmail
|
||||
};
|
||||
gpg = {
|
||||
encryptByDefault = true;
|
||||
|
|
@ -86,7 +83,6 @@ in
|
|||
};
|
||||
};
|
||||
terranix_org = {
|
||||
primary = false;
|
||||
address = "palo@terranix.org";
|
||||
aliases = [ ];
|
||||
realName = "Ingolf Wagner";
|
||||
|
|
@ -99,33 +95,28 @@ in
|
|||
notmuch.enable = true;
|
||||
msmtp = {
|
||||
enable = true;
|
||||
# msmtp --serverinfo --tls --tls-certcheck=off -a gmail
|
||||
};
|
||||
};
|
||||
ingolf-wagner = {
|
||||
primary = false;
|
||||
address = "contact@ingolf-wagner.de";
|
||||
aliases = [ ];
|
||||
realName = "Ingolf Wagner";
|
||||
userName = "contact@ingolf-wagner.de";
|
||||
passwordCommand = passcmd "mail/siteground/contact@ingolf-wagner.de";
|
||||
passwordCommand = passcmd "mail/namecheap/contact@ingolf-wagner.de";
|
||||
notmuch.enable = true;
|
||||
smtp = {
|
||||
host = "securees5.sgcpanel.com";
|
||||
port = 587;
|
||||
tls.useStartTls = true;
|
||||
};
|
||||
msmtp = {
|
||||
enable = true;
|
||||
# msmtp --serverinfo --tls --tls-certcheck=off -a ingolf-wagner
|
||||
tls.fingerprint =
|
||||
"16:94:47:E0:00:86:BB:F7:56:D3:81:F1:89:7B:CD:67:65:0B:EE:0B:A9:26:96:5E:0B:1F:56:AB:FD:DE:96:C5";
|
||||
};
|
||||
gpg = {
|
||||
encryptByDefault = true;
|
||||
signByDefault = true;
|
||||
key = "42AC51C9482D0834CF488AF1389EC2D64AC71EAC";
|
||||
};
|
||||
smtp = {
|
||||
host = "mail.privateemail.com";
|
||||
port = 465;
|
||||
};
|
||||
msmtp = {
|
||||
enable = true;
|
||||
# msmtp --serverinfo --tls --tls-certcheck=off -a ingolf-wagner
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
|
@ -392,6 +383,19 @@ in
|
|||
${notmuch} search --output=files --exclude=false tag:deleted | while read line; do rm -v "$line" ; done
|
||||
${notmuch} new
|
||||
'';
|
||||
plot_maildir =
|
||||
let
|
||||
years = [ 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 ];
|
||||
file = "~/Maildir/usage.csv";
|
||||
append_year = year: ''
|
||||
echo -n "${toString year}," >> ${file}
|
||||
${pkgs.notmuch}/bin/notmuch count -- date:${toString year} >> ${file}
|
||||
'';
|
||||
in
|
||||
pkgs.writers.writeBashBin "mail-create-statistics" ''
|
||||
rm ${file}
|
||||
${lib.concatStringsSep "\n" (map append_year years)}
|
||||
'';
|
||||
|
||||
in
|
||||
[
|
||||
|
|
@ -404,6 +408,7 @@ in
|
|||
pkgs.neomutt
|
||||
mutt
|
||||
mailDelete
|
||||
plot_maildir
|
||||
];
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue