Server IP : 111.118.215.189 / Your IP : 18.117.158.174 Web Server : Apache System : Linux md-in-83.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 User : a1673wkz ( 2475) PHP Version : 8.2.25 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0755) : /usr/share/emacs/24.3/lisp/org/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
;ELC ;;; Compiled by mockbuild@buildfarm06-new.corp.cloudlinux.com on Fri Oct 11 10:07:42 2024 ;;; from file /builddir/build/BUILD/emacs-24.3/lisp/org/org-mac-message.el ;;; in Emacs version 24.3.1 ;;; with all optimizations. ;;; This file uses dynamic docstrings, first added in Emacs 19.29. ;;; This file does not contain utf-8 non-ASCII characters, ;;; and so can be loaded in Emacs versions earlier than 23. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (byte-code "\300\301!\210\302\303\304\305\306\307\310\311&\210\312\313\314\315\310\303\316\317&\210\320\321\322\"\210\323\324!\204* \325\324\326\"\210\304\207" [require org custom-declare-group org-mac-flagged-mail nil "Options concerning linking to flagged Mail.app messages." :tag "Org Mail.app" :group org-link custom-declare-variable org-mac-mail-account "customize" "The Mail.app account in which to search for flagged messages." :type string org-add-link-type "message" org-mac-message-open fboundp do-applescript defalias #[(script) "\304\211\211\305\306\"\203 \307\310\311\211$\202 \305\312\n#\203. \313\314\224\\\307\315\311\211$\202 \316\312Q\317 !\320\321!\320Q+\207" [return cmd start script nil string-match "\n" replace-match " " t "'" 2 0 "\\'" "osascript -e '" shell-command-to-string "\"" org-trim] 5]] 8) #@101 Visit the message with the given MESSAGE-ID. This will use the command `open' with the message URL. (defalias 'org-mac-message-open #[(message-id) "\301\302P\303\304\305\306\303O\307Q$\207" [message-id start-process "open message:" nil "open" "message://<" 2 ">"] 8 (#$ . 1405)]) #@63 AppleScript to create links to selected messages in Mail.app. (defalias 'as-get-selected-mail #[nil "\300\301!\207" [do-applescript "tell application \"Mail\"\nset theLinkList to {}\nset theSelection to selection\nrepeat with theMessage in theSelection\nset theID to message id of theMessage\nset theSubject to subject of theMessage\nset theLink to \"message://\" & theID & \"::split::\" & theSubject & \"\n\"\ncopy theLink to end of theLinkList\nend repeat\nreturn theLinkList as string\nend tell"] 2 (#$ . 1693)]) #@62 AppleScript to create links to flagged messages in Mail.app. (defalias 'as-get-flagged-mail #[nil "\301\302\303\304\305\306\307\310\311\312\313\314\315\316\317\320\321\322\323\324\325\326\327\330\331\332\333\311\211\310\334\211\335\336\260\"!\207" [org-mac-mail-account do-applescript "tell application \"System Events\"\n" "set growlHelpers to the name of every process whose creator type contains \"GRRR\"\n" "if (count of growlHelpers) > 0 then\n" "set growlHelperApp to item 1 of growlHelpers\n" "else\n" "set growlHelperApp to \"\"\n" "end if\n" "end tell\n" "tell application \"Mail\"\n" "set theMailboxes to every mailbox of account \"" "\"\n" "set theLinkList to {}\n" "repeat with aMailbox in theMailboxes\n" "set theSelection to (every message in aMailbox whose flagged status = true)\n" "repeat with theMessage in theSelection\n" "set theID to message id of theMessage\n" "set theSubject to subject of theMessage\n" "set theLink to \"message://\" & theID & \"::split::\" & theSubject & \"\n\"\n" "copy theLink to end of theLinkList\n" "if growlHelperApp is not \"\" then\n" "tell application \"GrowlHelperApp\"\n" "tell application growlHelperApp\n" "set the allNotificationsList to {\"FlaggedMail\"}\n" "set the enabledNotificationsList to allNotificationsList\n" "register as application \"FlaggedMail\" all notifications allNotificationsList default notifications enabledNotificationsList icon of application \"Mail\"\n" "notify with name \"FlaggedMail\" title \"Importing flagged message\" description theSubject application name \"FlaggedMail\"\n" "end repeat\n" "return theLinkList as string\n" "end tell"] 35 (#$ . 2215)]) #@401 Create links to the messages currently selected or flagged in Mail.app. This will use AppleScript to get the message-id and the subject of the messages in Mail.app and make a link out of it. When SELECT-OR-FLAG is "s", get the selected messages (this is also the default). When SELECT-OR-FLAG is "f", get the flagged messages. The Org-syntax text will be pushed to the kill ring, and also returned. (defalias 'org-mac-message-get-links #[(&optional select-or-flag) "\206 \306\307\310!\210\306\230\203 \311 \202# \312\230\203 \313 \202# \314\315!\316\317\320 \321\"\"\322\211\322\211\322\211\322\n\203k \320\n\211A@\323\"\211@\211A@)\f\324\230\204>