mu4e: set different ical capture headings based on account context

This commit is contained in:
Evie Litherland-Smith 2024-02-22 11:18:27 +00:00
parent c61a502f2b
commit a338e54f0e

View file

@ -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