From 3a887eac1af6b9ed793571996b941a9e5c249ecd Mon Sep 17 00:00:00 2001 From: Sakooooo <78461130+Sakooooo@users.noreply.github.com> Date: Sat, 13 Jul 2024 22:12:51 +0400 Subject: [PATCH] add mbsyncrc --- config/emacs/.mbsyncrc | 22 ++++++++++++++++++++++ modules/dev/editors/emacs/default.nix | 1 + 2 files changed, 23 insertions(+) create mode 100644 config/emacs/.mbsyncrc diff --git a/config/emacs/.mbsyncrc b/config/emacs/.mbsyncrc new file mode 100644 index 00000000..ba3c45c1 --- /dev/null +++ b/config/emacs/.mbsyncrc @@ -0,0 +1,22 @@ +IMAPAccount outlook +Host outlook.office365.com +Port 993 +UserCmd "pass Microsoft | awk 'BEGIN {ORS=\"\"} FNR == 2{gsub(\"login: \", \"\"); gsub(/ /, \"\"); print}'" +PassCmd "pass Microsoft" +SSLType IMAPS + +IMAPStore outlook-remote +Account outlook + +MaildirStore outlook-local +Subfolders Verbatim +Path ~/Mail/Outlook/ +Inbox ~/Mail/Outlook/Inbox + +Channel Outlook +Far :outlook-remote: +Near :outlook-local: +Patterns * !"Conversation History" !Calendar !Archive !Archives !Clutter !Drafts +Create Both +Expunge Both +SyncState * diff --git a/modules/dev/editors/emacs/default.nix b/modules/dev/editors/emacs/default.nix index d032b4ad..b529c254 100644 --- a/modules/dev/editors/emacs/default.nix +++ b/modules/dev/editors/emacs/default.nix @@ -109,6 +109,7 @@ in { mv init.el $out ''; ".emacs.d/icon.png".source = ../../../../config/emacs/icon.png; + ".mbsyncrc".source = ../../../../config/emacs/.mbsyncrc; }; };