From b66a52630d2e65eee33f4952c549fdf3c9905317 Mon Sep 17 00:00:00 2001 From: Max Schlueter Date: Thu, 17 Nov 2022 00:54:17 +0100 Subject: [PATCH] email: add import calendar action --- +mail.el | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/+mail.el b/+mail.el index 7df3ac4..f83e245 100644 --- a/+mail.el +++ b/+mail.el @@ -89,6 +89,14 @@ (map! :map mu4e-headers-mode-map :vne "l" #'max/mu4e-org-capture) + (add-to-list 'mu4e-view-mime-part-actions + '(:name "calendar" + :handler (lambda (file) + (shell-command + (format "khal import --batch %s" file)) + (khalel-import-events)) + :receives temp)) + ;; Sign sent email automatically ;; (add-hook 'message-send-hook 'mml-secure-message-sign-smime)