From a338e54f0e277fdec4a2af7fa908ce8317a357a1 Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Thu, 22 Feb 2024 11:18:27 +0000 Subject: [PATCH] mu4e: set different ical capture headings based on account context --- config/email.org | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/config/email.org b/config/email.org index a89b94b..6b7e13c 100644 --- a/config/email.org +++ b/config/email.org @@ -78,7 +78,8 @@ (mu4e-sent-folder . "/Proton/Sent") (mu4e-drafts-folder . "/Proton/Drafts") (mu4e-trash-folder . "/Proton/Trash") - (mu4e-refile-folder . "/Proton/Archive"))) + (mu4e-refile-folder . "/Proton/Archive") + (gnus-icalendar-org-capture-headline '("Personal")))) (make-mu4e-context :name "Proton" :match-func (lambda (msg) (when msg (string-prefix-p "/Proton" (mu4e-message-field msg :maildir)))) @@ -86,7 +87,8 @@ (mu4e-sent-folder . "/Proton/Sent") (mu4e-drafts-folder . "/Proton/Drafts") (mu4e-trash-folder . "/Proton/Trash") - (mu4e-refile-folder . "/Proton/Archive"))) + (mu4e-refile-folder . "/Proton/Archive") + (gnus-icalendar-org-capture-headline '("Personal")))) (make-mu4e-context :name "iCloud" :match-func (lambda (msg) (when msg (string-prefix-p "/iCloud" (mu4e-message-field msg :maildir)))) @@ -94,7 +96,8 @@ (mu4e-sent-folder . "/iCloud/Sent Messages") (mu4e-drafts-folder . "/iCloud/Drafts") (mu4e-trash-folder . "/iCloud/Deleted Messages") - (mu4e-refile-folder . "/iCloud/Archive"))) + (mu4e-refile-folder . "/iCloud/Archive") + (gnus-icalendar-org-capture-headline '("Personal")))) (make-mu4e-context :name "Work" :match-func (lambda (msg) (when msg (string-prefix-p "/Outlook" (mu4e-message-field msg :maildir)))) @@ -102,7 +105,8 @@ (mu4e-sent-folder . "/Outlook/Sent") (mu4e-drafts-folder . "/Outlook/Drafts") (mu4e-trash-folder . "/Outlook/Trash") - (mu4e-refile-folder . "/Outlook/Archive")))))) + (mu4e-refile-folder . "/Outlook/Archive") + (gnus-icalendar-org-capture-headline '("Work"))))))) #+end_src ** Modeline configuration