From cf6cd99e34a705a096aeff0caa324562fd015dd2 Mon Sep 17 00:00:00 2001 From: Thanos Apollo Date: Sun, 16 Jul 2023 16:29:57 +0300 Subject: mu4e: Redo configuration --- emacs.org | 55 ++++++++++++++++++++++++++++++++++++++++++++++--------- 1 file changed, 46 insertions(+), 9 deletions(-) diff --git a/emacs.org b/emacs.org index d1c6780..98b12ea 100755 --- a/emacs.org +++ b/emacs.org @@ -771,25 +771,62 @@ Create function to watch videos using ~mpv~ (mu4e-trash-folder . ,(concat dir-name "/Trash")) (mu4e-trash-folder . ,(concat dir-name "/Starred")) (mu4e-refile-folder . ,(concat dir-name "/Archive")) - (smtpmail-smtp-service . ,465) - (smtpmail-smtp-server . ,server) (mu4e-compose-signature . ,signature))))) ;;Fixing duplicate UID errors when using mbsync and mu4e (setq mu4e-change-filenames-when-moving t) (setq mu4e-maildir-shortcuts - '(("/Public/Inbox" . ?i) - ("/Public/Sent" . ?s) + '(("/Public/Inbox" . ?I) + ("/Inbox" . ?i) + ("/Sent" . ?s) + ("/MUSofia/Inbox" . ?m) )) (setq mu4e-contexts - `(, (set-mu4e-context - "Public" "Thanos Apollo" - "public@thanosapollo.com" "Thanos\nhttps://thanosapollo.com" - "mail.gandi.net"))) + (list + (make-mu4e-context + :name "Personal" + :match-func + (lambda (msg) + (when msg + (string-prefix-p "/" (mu4e-message-field msg :maildir)))) + :vars '((user-mail-address . "thanosapollo@fastmail.com") + (user-full-name . "Thanos Apollo") + (mu4e-drafts-folder . "/Drafts") + (mu4e-sent-folder . "/Sent") + (mu4e-refile-folder . "/Archive") + (mu4e-trash-folder . "/Trash"))) + (make-mu4e-context + :name "Master" + :match-func + (lambda (msg) + (when msg + (string-prefix-p "/" (mu4e-message-field msg :maildir)))) + :vars '((user-mail-address . "public@thanosapollo.com") + (user-full-name . "Thanos Apollo") + (smtpmail-smtp-server . "smtp.fastmail.com") + (smtpmail-smtp-service . 465) + (smtpmail-stream-type . ssl) + (mu4e-drafts-folder . "/Drafts") + (mu4e-sent-folder . "/Sent") + (mu4e-refile-folder . "/Archive") + (mu4e-trash-folder . "/Trash"))))) (setq message-send-mail-function 'smtpmail-send-it - smtpmail-stream-type 'ssl)) + smtpmail-smtp-server "smtp.fastmail.com" + smtpmail-smtp-service 465 + smtpmail-smtp-user "thanosapollo@fastmail.com" + mu4e-compose-signature "Thanos Apollo\nhttps://thanosapollo.com") + + (setq mu4e-view-actions + (delete-dups + (append + '(("gapply git patches" . mu4e-action-git-apply-patch) + ("mgit am patch" . mu4e-action-git-apply-mbox) + ("bb4 am patch" . mu4e-action-git-apply-b4) + ("ssetup reword list with b4" . mu4e-action-setup-reword-b4) + ("crun checkpatch script" . my-mu4e-action-run-check-patch) + ("MCheck if merged" . my-mu4e-action-check-if-merged)))))) #+end_src ** Actions #+begin_src emacs-lisp -- cgit v1.2.3