]> Git — Sourcephile - julm/julm-nix.git/blob - homes/julm/mutt.nix
oignon: try to fix backup over USB (again)
[julm/julm-nix.git] / homes / julm / mutt.nix
1 { pkgs, lib, config, ... }:
2 {
3 home.packages = [ pkgs.neomutt ];
4 xdg.configFile."neomutt/neomuttrc".text = ''
5 unmailboxes *
6 ${builtins.readFile mutt/muttrc}
7 macro index,pager H ":set auto_tag=yes\n:unset wait_key\n<pipe-entry>${pkgs.procmail}/bin/formail -ds | ${pkgs.rspamd}/bin/rspamc learn_ham\n:set wait_key\n" "Flag as HAM"
8 macro index,pager S "<pipe-entry>${pkgs.procmail}/bin/formail -ds | rspamc symbols\n<enter-command>set wait_key\n" "Tests if it is SPAM"
9 macro index,pager s ":set confirmappend=no delete=yes auto_tag=yes\n:unset wait_key\n<pipe-entry>${pkgs.procmail}/bin/formail -ds | ${pkgs.rspamd}/bin/rspamc learn_spam\n:set wait_key\n<save-message>=.Pourriel/\n<sync-mailbox>:set confirmappend=yes delete=ask-yes\n" "Flag as SPAM"
10
11 account-hook (autogeree.net) 'set certificate_file = ${mutt/autogeree.net/certificate_file.pem}'
12 account-hook (sourcephile.fr) 'set certificate_file = ${mutt/sourcephile.fr/certificate_file.pem}'
13
14 #source ${mutt/sourcephile.fr/julm.imap.conf}
15 #source ${mutt/autogeree.net/julm.imap.conf}
16 #set nm_default_uri = imaps://julm@sourcephile.fr@mail.sourcephile.fr:993/INBOX
17 #set spoolfile = imaps://julm@sourcephile.fr@mail.sourcephile.fr:993/
18
19 folder-hook (/autogeree.net/) 'source ${mutt/autogeree.net/julm.maildir.conf}'
20 source ${mutt/autogeree.net/julm.maildir.conf}
21 mailboxes `find -P ~/mail/autogeree.net/mail/ -type d -name new -printf "\"%h\" "`
22
23 folder-hook (news.sourcephile.fr) 'source ${mutt/sourcephile.fr/julm.maildir.conf}; set record = =Envoyés'
24 source ${mutt/sourcephile.fr/julm.nntp.conf}
25
26 folder-hook (/sourcephile.fr/) 'source ${mutt/sourcephile.fr/julm.maildir.conf}'
27 source ${mutt/sourcephile.fr/julm.maildir.conf}
28 mailboxes `find -P ~/mail/sourcephile.fr/mail/ -type d -name new -printf "\"%h\" "`
29
30 '';
31 }