diff options
author | jao <jao@numenor.local> | 2011-04-17 20:59:57 +0200 |
---|---|---|
committer | jao <jao@numenor.local> | 2011-04-17 20:59:57 +0200 |
commit | 9202d6d179686f527a5b50d03ef7fd5abfb3bd65 (patch) | |
tree | 04d0e42825ab7c93ce95aeb74be25dfbc3d724c4 /net | |
parent | ef57ed13fdd8160ef9f9403f548100394f7145c8 (diff) | |
download | elibs-9202d6d179686f527a5b50d03ef7fd5abfb3bd65.tar.gz elibs-9202d6d179686f527a5b50d03ef7fd5abfb3bd65.tar.bz2 |
osx things
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) |