diff options
Diffstat (limited to 'net')
-rw-r--r-- | net/jao-osx-mail.el | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/net/jao-osx-mail.el b/net/jao-osx-mail.el new file mode 100644 index 0000000..8b9efda --- /dev/null +++ b/net/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) |