FIX : mails config and add notmuch primary support
This commit is contained in:
parent
7b2a946321
commit
50ea97f8f3
|
@ -1,7 +1,7 @@
|
||||||
IMAPAccount DRI
|
IMAPAccount DRI
|
||||||
Host imap.dri.fr
|
Host imap.dri.fr
|
||||||
User 1847_alexandre
|
User 1847_alexandre
|
||||||
PassCmd "pass email/alexandre"
|
PassCmd "keepassxc-cli show -a Password --no-password -k $HOME/keys/emails.key $HOME/Nextcloud/PRIVE/Keepass/emails.kbx emails"
|
||||||
SSLType None
|
SSLType None
|
||||||
|
|
||||||
IMAPStore DRI-remote
|
IMAPStore DRI-remote
|
||||||
|
|
|
@ -14,5 +14,5 @@ port 587
|
||||||
domain dri.fr
|
domain dri.fr
|
||||||
from alexandre@dri.fr
|
from alexandre@dri.fr
|
||||||
user 1847_alexandre
|
user 1847_alexandre
|
||||||
passwordeval "pass email/alexandre"
|
passwordeval "keepassxc-cli show -a Password --no-password -k $HOME/keys/emails.key $HOME/Nextcloud/PRIVE/Keepass/emails.kbx emails"
|
||||||
auth plain
|
auth plain
|
||||||
|
|
|
@ -1,34 +1,42 @@
|
||||||
{ pkgs, config, lib, ... }:{
|
{ pkgs, config, lib, ... }:{
|
||||||
# accounts.email.maildirBasePath = "Mailsdir";
|
# accounts.email.maildirBasePath = "Mailsdir";
|
||||||
# accounts.email.accounts = {
|
accounts.email= {
|
||||||
# "alexandre" = rec {
|
accounts = {
|
||||||
# primary = true;
|
dri = {
|
||||||
# address = "alexandre@dri.fr";
|
primary = true;
|
||||||
# userName = "1847_alexandre";
|
address = "alexandre@dri.fr";
|
||||||
# flavor = "plain";
|
userName = "1847_alexandre";
|
||||||
# folders = {
|
realName = "Alexandre LUCAZEAU";
|
||||||
# inbox = "INBOX";
|
passwordCommand = "keepassxc-cli show -a Password --no-password -k $HOME/keys/emails.key $HOME/Nextcloud/PRIVE/Keepass/emails.kbx emails";
|
||||||
# trash = "Junk";
|
flavor = "plain";
|
||||||
# };
|
folders = {
|
||||||
# imap = {
|
inbox = "INBOX";
|
||||||
# host = "imap.dri.fr";
|
trash = "Junk";
|
||||||
# tls.enable = false;
|
};
|
||||||
# };
|
imap = {
|
||||||
# smtp = {
|
host = "imap.dri.fr";
|
||||||
# host = "smtp.dri.fr";
|
tls.enable = false;
|
||||||
# port = 587;
|
};
|
||||||
# tls.enable = false;
|
smtp = {
|
||||||
# };
|
host = "smtp.dri.fr";
|
||||||
# passwordCommand = "pass email/alexandre";
|
port = 587;
|
||||||
# mbsync.enable = true;
|
tls.enable = false;
|
||||||
# mbsync.create = true;
|
};
|
||||||
# msmtp.enable = true;
|
|
||||||
# msmtp.extraConfig = ''
|
mbsync.enable = true;
|
||||||
# auth plain
|
notmuch.enable = true;
|
||||||
# '';
|
};
|
||||||
# };
|
};
|
||||||
# };
|
};
|
||||||
programs.msmtp.enable = true;
|
services.mbsync = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
programs = {
|
||||||
|
msmtp.enable = true;
|
||||||
|
mbsync.enable = true;
|
||||||
|
notmuch.enable = true;
|
||||||
|
};
|
||||||
xdg.configFile = {
|
xdg.configFile = {
|
||||||
"msmtp/config".source= ./configs/msmtp_config;
|
"msmtp/config".source= ./configs/msmtp_config;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue