From 9d86ef31da28497c87f60d5f60ec1d8541c4b54d Mon Sep 17 00:00:00 2001 From: Sakooooo <78461130+Sakooooo@users.noreply.github.com> Date: Sat, 13 Jul 2024 22:05:19 +0400 Subject: [PATCH] holy shit --- config/emacs/emacs.org | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/config/emacs/emacs.org b/config/emacs/emacs.org index 8be180e3..716e62f6 100644 --- a/config/emacs/emacs.org +++ b/config/emacs/emacs.org @@ -1014,6 +1014,9 @@ GNU patch review metho dor sometihng idk (setq mu4e-get-mail-command "mbsync -a") (setq mu4e-maildir "~/Mail") + (setq outlook-mail-address + (string-trim (shell-command-to-string "pass mail | awk 'BEGIN {ORS=\"\"} FNR == 2{gsub(\"login: \", \"\"); gsub(/ /, \"\"); print}'"))) + (setq mu4e-contexts (list ;; outlook @@ -1023,7 +1026,7 @@ GNU patch review metho dor sometihng idk (lambda (msg) (when msg (string-prefix-p "/Outlook" (mu4e-message-field msg :maildir)))) - :vars `((user-mail-address . (string-trim (shell-command-to-string "pass Microsoft | awk 'BEGIN {ORS=\"\"} FNR == 2{gsub(\"login: \", \"\"); gsub(/ /, \"\"); print}'"))) + :vars `((user-mail-address . ,outlook-mail-address) (user-full-name . "Sako") (mu4e-drafts-folder . "/Outlook/Drafts") (mu4e-sent-folder . "/Outlook/Sent")