mirror of
https://github.com/JulienMalka/snowfield.git
synced 2025-03-26 13:50:51 +01:00
feat: re-enable notmuch
This commit is contained in:
parent
113d84a4bd
commit
8a4f2c1d15
1 changed files with 35 additions and 2 deletions
|
@ -31,10 +31,15 @@ with lib;
|
||||||
file = ../../secrets/ens-mail-pw.age;
|
file = ../../secrets/ens-mail-pw.age;
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.mbsync.enable = true;
|
programs.mbsync = {
|
||||||
|
enable = true;
|
||||||
|
package = pkgs.unstable.isync;
|
||||||
|
};
|
||||||
|
|
||||||
programs.msmtp.enable = true;
|
programs.msmtp.enable = true;
|
||||||
accounts.email = {
|
accounts.email = {
|
||||||
accounts.ens = {
|
accounts.ens = {
|
||||||
|
notmuch.enable = true;
|
||||||
folders.inbox = "INBOX";
|
folders.inbox = "INBOX";
|
||||||
address = "julien.malka@ens.fr";
|
address = "julien.malka@ens.fr";
|
||||||
imap.host = "clipper.ens.fr";
|
imap.host = "clipper.ens.fr";
|
||||||
|
@ -55,6 +60,7 @@ with lib;
|
||||||
userName = "jmalka";
|
userName = "jmalka";
|
||||||
};
|
};
|
||||||
accounts.work = {
|
accounts.work = {
|
||||||
|
notmuch.enable = true;
|
||||||
folders.inbox = "INBOX";
|
folders.inbox = "INBOX";
|
||||||
address = "julien@malka.sh";
|
address = "julien@malka.sh";
|
||||||
imap.host = "mail.luj.fr";
|
imap.host = "mail.luj.fr";
|
||||||
|
@ -76,6 +82,7 @@ with lib;
|
||||||
};
|
};
|
||||||
|
|
||||||
accounts.telecom = {
|
accounts.telecom = {
|
||||||
|
notmuch.enable = true;
|
||||||
folders.inbox = "INBOX";
|
folders.inbox = "INBOX";
|
||||||
address = "julien.malka@telecom-paris.fr";
|
address = "julien.malka@telecom-paris.fr";
|
||||||
imap.host = "z.imt.fr";
|
imap.host = "z.imt.fr";
|
||||||
|
@ -97,6 +104,7 @@ with lib;
|
||||||
};
|
};
|
||||||
|
|
||||||
accounts.dgnum = {
|
accounts.dgnum = {
|
||||||
|
notmuch.enable = true;
|
||||||
folders.inbox = "INBOX";
|
folders.inbox = "INBOX";
|
||||||
address = "luj@dgnum.eu";
|
address = "luj@dgnum.eu";
|
||||||
imap.host = "kurisu.lahfa.xyz";
|
imap.host = "kurisu.lahfa.xyz";
|
||||||
|
@ -122,7 +130,32 @@ with lib;
|
||||||
services.mbsync = {
|
services.mbsync = {
|
||||||
enable = true;
|
enable = true;
|
||||||
frequency = "minutely";
|
frequency = "minutely";
|
||||||
verbose = true;
|
package = pkgs.unstable.isync;
|
||||||
|
};
|
||||||
|
|
||||||
|
services.mbsync.postExec = "${pkgs.notmuch}/bin/notmuch new";
|
||||||
|
programs.notmuch = {
|
||||||
|
enable = true;
|
||||||
|
new.tags = [ "new" ];
|
||||||
|
hooks.postNew = ''
|
||||||
|
${pkgs.afew}/bin/afew --tag --new
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
|
programs.afew = {
|
||||||
|
enable = true;
|
||||||
|
extraConfig = ''
|
||||||
|
[FolderNameFilter]
|
||||||
|
maildir_separator = /
|
||||||
|
folder_lowercases = true
|
||||||
|
folder_blacklist = Sent
|
||||||
|
[ArchiveSentMailsFilter]
|
||||||
|
sent_tag = sent
|
||||||
|
[Filter.1]
|
||||||
|
query = tag:archive
|
||||||
|
tags = -new
|
||||||
|
[InboxFilter]
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue