Small mail tweaks

This commit is contained in:
Charlotte Van Petegem 2020-10-07 10:06:45 +02:00
parent d332f80a8f
commit bac2b111f5
No known key found for this signature in database
GPG key ID: 019E764B7184435A
2 changed files with 2 additions and 2 deletions

View file

@ -21,7 +21,7 @@ let
enable = true; enable = true;
boxes = [ "INBOX" ]; boxes = [ "INBOX" ];
onNotify = "${pkgs.offlineimap}/bin/offlineimap -a ${name} -f INBOX"; onNotify = "${pkgs.offlineimap}/bin/offlineimap -a ${name} -f INBOX";
onNotifyPost = { mail = "${pkgs.libnotify}/bin/notify-send 'New ${name} mail arrived'"; }; onNotifyPost = { mail = "${pkgs.libnotify}/bin/notify-send -t 5000 'New ${name} mail arrived' \"$(${pkgs.mblaze}/bin/mlist -N ~/mail/*/INBOX | wc -l) unseen mails\""; };
}; };
msmtp.enable = true; msmtp.enable = true;
neomutt = { neomutt = {

View file

@ -93,7 +93,7 @@ pkgs.writeText "configuration.toml" ''
block = "custom" block = "custom"
json = true json = true
command = "${mail-status}" command = "${mail-status}"
interval = 10 interval = 1
[[block]] [[block]]
block = "time" block = "time"