summaryrefslogtreecommitdiffhomepage
path: root/attic/jao-osx-mail.el
diff options
context:
space:
mode:
Diffstat (limited to 'attic/jao-osx-mail.el')
-rw-r--r--attic/jao-osx-mail.el13
1 files changed, 13 insertions, 0 deletions
diff --git a/attic/jao-osx-mail.el b/attic/jao-osx-mail.el
new file mode 100644
index 0000000..8b9efda
--- /dev/null
+++ b/attic/jao-osx-mail.el
@@ -0,0 +1,13 @@
+(defun jao--gnus-message-id ()
+ (require 'org-gnus)
+ (let ((header (with-current-buffer gnus-summary-buffer
+ (gnus-summary-article-header))))
+ (and header (org-remove-angle-brackets (mail-header-id header)))))
+
+(defun jao-gnus-open-in-mail ()
+ (interactive)
+ (let ((id (jao--gnus-message-id)))
+ (unless id (error "no message selected"))
+ (shell-command-to-string (format "open 'message:<%s>'" id))))
+
+(provide 'jao-osx-mail)