bettered up mail receiving using channels

This commit is contained in:
Rouven Seifert 2023-01-27 21:38:23 +01:00
parent 9487a0cbc6
commit cb5c8e1717
Signed by: rouven.seifert
GPG key ID: B95E8FE6B11C4D09
2 changed files with 56 additions and 19 deletions

View file

@ -51,6 +51,24 @@ in
mbsync = { mbsync = {
enable = true; enable = true;
create = "maildir"; create = "maildir";
expunge = "both";
groups.rfive = {
channels.trash = {
nearPattern = "Trash";
farPattern = "Gel&APY-schte Elemente";
extraConfig.Create = "near";
};
channels.sent = {
nearPattern = "Sent";
farPattern = "Gesendete Elemente";
extraConfig.Create = "near";
};
channels.drafts = {
nearPattern = "Drafts";
farPattern = "Entw&APw-rfe";
extraConfig.Create = "near";
};
};
extraConfig = { extraConfig = {
account = { account = {
AuthMechs = "Login"; AuthMechs = "Login";
@ -82,6 +100,24 @@ in
mbsync = { mbsync = {
enable = true; enable = true;
create = "maildir"; create = "maildir";
expunge = "both";
groups.tud = {
channels.trash = {
nearPattern = "Trash";
farPattern = "Gel&APY-schte Elemente";
extraConfig.Create = "near";
};
channels.sent = {
nearPattern = "Sent";
farPattern = "Gesendete Elemente";
extraConfig.Create = "near";
};
channels.drafts = {
nearPattern = "Drafts";
farPattern = "Entw&APw-rfe";
extraConfig.Create = "near";
};
};
extraConfig = { extraConfig = {
account = { account = {
AuthMechs = "Login"; AuthMechs = "Login";
@ -93,15 +129,7 @@ in
enable = true; enable = true;
mailboxName = "--TU Dresden-------"; mailboxName = "--TU Dresden-------";
# mbsync can't handle umlauts, crap # mbsync can't handle umlauts, crap
extraMailboxes = [ "Gesendete Elemente" "Opal" "Gel&APY-schte Elemente" "Junk-E-Mail" "Entw&APw-rfe" ]; extraMailboxes = [ "Opal" "Sent" "Trash" "Junk-E-Mail" "Drafts" ];
extraConfig = ''
unset postponed
unset trash
unset record
set postponed='+Entw&APw-rfe'
set trash='+Gel&APY-schte Elemente'
set record='+Gesendete Elemente'
'';
}; };
}; };
"gmail" = rec { "gmail" = rec {
@ -120,6 +148,24 @@ in
mbsync = { mbsync = {
enable = true; enable = true;
create = "maildir"; create = "maildir";
expunge = "both";
groups.googlemail = {
channels.trash = {
nearPattern = "Trash";
farPattern = "[Gmail]/Papierkorb";
extraConfig.Create = "near";
};
channels.sent = {
nearPattern = "Sent";
farPattern = "[Gmail]/Gesendet";
extraConfig.Create = "near";
};
channels.drafts = {
nearPattern = "Drafts";
farPattern = "[Gmail]/Entw&APw-rfe";
extraConfig.Create = "near";
};
};
extraConfig = { extraConfig = {
account = { account = {
AuthMechs = "Login"; AuthMechs = "Login";
@ -130,15 +176,7 @@ in
neomutt = { neomutt = {
enable = true; enable = true;
mailboxName = "--gmail------------"; mailboxName = "--gmail------------";
extraMailboxes = [ "[Gmail]/Gesendet" "[Gmail]/Papierkorb" "[Gmail]/Spam" "[Gmail]/Entw&APw-rfe" ]; extraMailboxes = [ "Sent" "Trash" "[Gmail]/Spam" "Drafts" ];
extraConfig = ''
unset postponed
unset trash
unset record
set postponed='+[Gmail]/Entw&APw-rfe'
set trash='+[Gmail]/Papierkorb'
set record='+[Gmail/Gesendet]'
'';
}; };
}; };
}; };

View file

@ -14,7 +14,6 @@ bind pager j next-line
# Scrolling # Scrolling
bind attach,browser,pager,index \CF next-page bind attach,browser,pager,index \CF next-page
bind attach,browser,pager,index \CB previous-page
bind attach,browser,pager,index \Cu half-up bind attach,browser,pager,index \Cu half-up
bind attach,browser,pager,index \Cd half-down bind attach,browser,pager,index \Cd half-down
bind browser,pager \Ce next-line bind browser,pager \Ce next-line