FIX : mails config and add notmuch primary support

alacritty
Alexandre LUCAZEAU 2022-02-09 15:17:37 +01:00
parent 7b2a946321
commit 50ea97f8f3
No known key found for this signature in database
GPG Key ID: 3C8ADB07A8217BD3
3 changed files with 39 additions and 31 deletions

View File

@ -1,7 +1,7 @@
IMAPAccount DRI
Host imap.dri.fr
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
IMAPStore DRI-remote

View File

@ -14,5 +14,5 @@ port 587
domain dri.fr
from alexandre@dri.fr
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

View File

@ -1,34 +1,42 @@
{ pkgs, config, lib, ... }:{
# accounts.email.maildirBasePath = "Mailsdir";
# accounts.email.accounts = {
# "alexandre" = rec {
# primary = true;
# address = "alexandre@dri.fr";
# userName = "1847_alexandre";
# flavor = "plain";
# folders = {
# inbox = "INBOX";
# trash = "Junk";
# };
# imap = {
# host = "imap.dri.fr";
# tls.enable = false;
# };
# smtp = {
# host = "smtp.dri.fr";
# port = 587;
# tls.enable = false;
# };
# passwordCommand = "pass email/alexandre";
# mbsync.enable = true;
# mbsync.create = true;
# msmtp.enable = true;
# msmtp.extraConfig = ''
# auth plain
# '';
# };
# };
programs.msmtp.enable = true;
accounts.email= {
accounts = {
dri = {
primary = true;
address = "alexandre@dri.fr";
userName = "1847_alexandre";
realName = "Alexandre LUCAZEAU";
passwordCommand = "keepassxc-cli show -a Password --no-password -k $HOME/keys/emails.key $HOME/Nextcloud/PRIVE/Keepass/emails.kbx emails";
flavor = "plain";
folders = {
inbox = "INBOX";
trash = "Junk";
};
imap = {
host = "imap.dri.fr";
tls.enable = false;
};
smtp = {
host = "smtp.dri.fr";
port = 587;
tls.enable = false;
};
mbsync.enable = true;
notmuch.enable = true;
};
};
};
services.mbsync = {
enable = true;
};
programs = {
msmtp.enable = true;
mbsync.enable = true;
notmuch.enable = true;
};
xdg.configFile = {
"msmtp/config".source= ./configs/msmtp_config;
};