2023-01-02 16:40:45 +00:00
|
|
|
{pkgs, ...}: let
|
|
|
|
mailcap = pkgs.writeText "mailcap" ''
|
|
|
|
text/html; ${pkgs.w3m}/bin/w3m -I %{charset} -T text/html; copiousoutput;
|
|
|
|
image/*; ${pkgs.imv}/bin/imv %s
|
|
|
|
'';
|
|
|
|
in {
|
|
|
|
accounts.email = {
|
2023-01-04 15:27:13 +00:00
|
|
|
accounts = rec {
|
2023-01-02 16:40:45 +00:00
|
|
|
lotte = {
|
|
|
|
address = "lotte@chir.rs";
|
|
|
|
aliases = ["darkkirb@darkkirb.de"];
|
|
|
|
gpg = {
|
|
|
|
encryptByDefault = true;
|
|
|
|
key = "0xB4E3D4801C49EC5E";
|
|
|
|
signByDefault = true;
|
|
|
|
};
|
|
|
|
imap.host = "mail.chir.rs";
|
|
|
|
imapnotify = {
|
|
|
|
enable = true;
|
|
|
|
boxes = ["Inbox"];
|
|
|
|
onNotify = "${pkgs.systemd}/bin/start --user mbsync.service";
|
|
|
|
};
|
|
|
|
mbsync = {
|
|
|
|
enable = true;
|
|
|
|
create = "both";
|
|
|
|
expunge = "both";
|
|
|
|
remove = "both";
|
|
|
|
};
|
|
|
|
msmtp.enable = true;
|
|
|
|
neomutt.enable = true;
|
|
|
|
notmuch.enable = true;
|
|
|
|
passwordCommand = "${pkgs.coreutils}/bin/cat /run/secrets/email/lotte@chir.rs";
|
|
|
|
primary = true;
|
|
|
|
realName = "Charlotte 🦝 Delenk";
|
|
|
|
signature.text = ''
|
|
|
|
Charlotte
|
|
|
|
|
|
|
|
@charlotte@akko.chir.rs • https://darkkirb.de • 0xB4E3D4801C49EC5E
|
|
|
|
'';
|
|
|
|
smtp.host = "mail.chir.rs";
|
2023-03-18 20:31:44 +00:00
|
|
|
thunderbird.enable = true;
|
2023-01-02 16:40:45 +00:00
|
|
|
userName = "lotte@chir.rs";
|
|
|
|
};
|
2023-03-18 20:31:44 +00:00
|
|
|
mdelenk =
|
|
|
|
lotte
|
|
|
|
// {
|
|
|
|
address = "mdelenk@hs-mittweida.de";
|
|
|
|
aliases = [];
|
|
|
|
gpg = {
|
|
|
|
encryptByDefault = true;
|
|
|
|
key = "0x5130416C797067B6";
|
|
|
|
signByDefault = true;
|
|
|
|
};
|
|
|
|
imap.host = "xc.hs-mittweida.de";
|
|
|
|
smtp.host = "xc.hs-mittweida.de";
|
|
|
|
userName = "mdelenk@hs-mittweida.de";
|
|
|
|
realName = "Morten Delenk";
|
|
|
|
signature.text = ''
|
|
|
|
Morten Delenk • Mtk.Nr. 54607 • IF21wI2-B
|
|
|
|
'';
|
|
|
|
primary = false;
|
2023-01-04 15:27:13 +00:00
|
|
|
};
|
2023-01-02 16:40:45 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
services = {
|
|
|
|
imapnotify.enable = true;
|
|
|
|
mbsync = {
|
|
|
|
enable = true;
|
|
|
|
frequency = "*:0/15";
|
|
|
|
postExec = "${pkgs.notmuch}/bin/notmuch new";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
programs = {
|
|
|
|
afew = {
|
|
|
|
enable = true;
|
|
|
|
extraConfig = ''
|
|
|
|
[ArchiveSentMailsFilter]
|
|
|
|
[DMARCReportInspectionFilter]
|
|
|
|
[HeaderMatchingFilter.1]
|
|
|
|
header = X-Spam
|
|
|
|
pattern = Yes
|
|
|
|
tags = +spam
|
|
|
|
[KillThreadsFilter]
|
|
|
|
[ListMailsFilter]
|
|
|
|
[Filter.0]
|
|
|
|
query = tag:new
|
|
|
|
tags = +inbox;+unread;-new
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
mbsync.enable = true;
|
|
|
|
msmtp.enable = true;
|
|
|
|
neomutt = {
|
|
|
|
enable = true;
|
|
|
|
binds = [
|
|
|
|
{
|
|
|
|
key = "\\CA";
|
|
|
|
action = "sidebar-next";
|
|
|
|
map = ["index" "pager"];
|
|
|
|
}
|
|
|
|
{
|
|
|
|
key = "\\CL";
|
|
|
|
action = "sidebar-prev";
|
|
|
|
map = ["index" "pager"];
|
|
|
|
}
|
|
|
|
{
|
|
|
|
key = "\\CP";
|
|
|
|
action = "sidebar-open";
|
|
|
|
map = ["index" "pager"];
|
|
|
|
}
|
|
|
|
{
|
|
|
|
key = "<Enter>";
|
|
|
|
action = "display-message";
|
|
|
|
map = ["index"];
|
|
|
|
}
|
|
|
|
{
|
|
|
|
key = "\\CV";
|
|
|
|
action = "display-message";
|
|
|
|
map = ["index"];
|
|
|
|
}
|
|
|
|
];
|
|
|
|
extraConfig = ''
|
|
|
|
virtual-mailboxes "To Do" "notmuch://?query=tag:todo"
|
|
|
|
virtual-mailboxes "To Read" "notmuch://?query=tag:toread"
|
|
|
|
virtual-mailboxes "Blocked" "notmuch://?query=tag:blocked"
|
|
|
|
virtual-mailboxes "Archive" "notmuch://?query=tag:archive"
|
|
|
|
macro index,pager A "<modify-labels-then-hide>+archive -unread -inbox\n"
|
|
|
|
bind index,pager y modify-labels
|
|
|
|
set mailcap_path = ${mailcap}
|
|
|
|
set send_charset="utf-8"
|
|
|
|
set edit_headers=yes
|
|
|
|
set use_8bit_mime=yes
|
|
|
|
'';
|
|
|
|
sidebar.enable = true;
|
|
|
|
};
|
|
|
|
notmuch = {
|
|
|
|
enable = true;
|
|
|
|
hooks.postNew = ''
|
|
|
|
${pkgs.afew}/bin/afew --tag --new
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
2023-03-18 20:31:44 +00:00
|
|
|
programs.thunderbird = {
|
|
|
|
enable = true;
|
|
|
|
profiles.main = {
|
|
|
|
withExternalGnuupg = truue;
|
|
|
|
};
|
|
|
|
};
|
2022-01-19 13:56:46 +00:00
|
|
|
}
|