imapnotify only send notification on new mail
This commit is contained in:
parent
bde020a7b2
commit
187b8f271e
|
@ -40,8 +40,10 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
boxes = [ "INBOX" ];
|
boxes = [ "INBOX" ];
|
||||||
onNotify = "${pkgs.isync}/bin/mbsync --pull proton:INBOX";
|
onNotify = "${pkgs.isync}/bin/mbsync --pull proton:INBOX";
|
||||||
onNotifyPost =
|
onNotifyPost = {
|
||||||
"${pkgs.libnotify}/bin/notify-send 'Proton: New mail arrived'";
|
mail =
|
||||||
|
"${pkgs.libnotify}/bin/notify-send 'Proton: New mail arrived'";
|
||||||
|
};
|
||||||
extraConfig = {
|
extraConfig = {
|
||||||
tls = false;
|
tls = false;
|
||||||
tlsOptions.rejectUnauthorized = false;
|
tlsOptions.rejectUnauthorized = false;
|
||||||
|
@ -78,8 +80,10 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
boxes = [ "INBOX" ];
|
boxes = [ "INBOX" ];
|
||||||
onNotify = "${pkgs.isync}/bin/mbsync --pull icloud:INBOX";
|
onNotify = "${pkgs.isync}/bin/mbsync --pull icloud:INBOX";
|
||||||
onNotifyPost =
|
onNotifyPost = {
|
||||||
"${pkgs.libnotify}/bin/notify-send 'iCloud: New mail arrived'";
|
mail =
|
||||||
|
"${pkgs.libnotify}/bin/notify-send 'Proton: New mail arrived'";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
mbsync = {
|
mbsync = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -115,8 +119,10 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
boxes = [ "INBOX" ];
|
boxes = [ "INBOX" ];
|
||||||
onNotify = "${pkgs.isync}/bin/mbsync --pull ukaea:INBOX";
|
onNotify = "${pkgs.isync}/bin/mbsync --pull ukaea:INBOX";
|
||||||
onNotifyPost =
|
onNotifyPost = {
|
||||||
"${pkgs.libnotify}/bin/notify-send 'UKAEA: New mail arrived'";
|
mail =
|
||||||
|
"${pkgs.libnotify}/bin/notify-send 'Proton: New mail arrived'";
|
||||||
|
};
|
||||||
extraConfig = {
|
extraConfig = {
|
||||||
tls = false;
|
tls = false;
|
||||||
tlsOptions.rejectUnauthorized = false;
|
tlsOptions.rejectUnauthorized = false;
|
||||||
|
|
Loading…
Reference in a new issue