%PDF- <> %âãÏÓ endobj 2 0 obj <> endobj 3 0 obj <>/ExtGState<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI] >>/Annots[ 28 0 R 29 0 R] /MediaBox[ 0 0 595.5 842.25] /Contents 4 0 R/Group<>/Tabs/S>> endobj ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<> endobj 2 0 obj<>endobj 2 0 obj<>es 3 0 R>> endobj 2 0 obj<> ox[ 0.000000 0.000000 609.600000 935.600000]/Fi endobj 3 0 obj<> endobj 7 1 obj<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI]>>/Subtype/Form>> stream
;ELC ;;; Compiled ;;; in Emacs version 25.2.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 "\3001 \301\302!0\202 \210\202 \210\301\303!\210\301\304!\210\301\305!\210\301\306!\210\301\307!\210\3101/ \301\311!0\2023 \210\2024 \210\301\312!\210\313\314\315\316\317\320\321\322&\210\323\324\325\326\327\330\321\314&\210\323\331\325\332\327\330\321\314&\210\323\333\334\335\327\336\321\314&\210\323\337\315\340\327\341\321\314&\207" [(error) require notifications gnus-sum gnus-group gnus-int gnus-art gnus-util (error) google-contacts gnus-fun custom-declare-group gnus-notifications nil "Send notifications on new message in Gnus." :version "24.3" :group gnus custom-declare-variable gnus-notifications-use-google-contacts t "Use Google Contacts to retrieve photo." :type boolean gnus-notifications-use-gravatar "Use Gravatar to retrieve photo." gnus-notifications-minimum-level 1 "Minimum group level the message should have to be notified.\nAny message in a group that has a greater value than this will\nnot get notifications." integer gnus-notifications-timeout "Timeout used for notifications sent via `notifications-notify'." (choice (const :tag "Server default" nil) (integer :tag "Milliseconds"))] 8) #@29 Notifications already sent. (defvar gnus-notifications-sent nil (#$ . 1544)) #@36 Map notifications ids to messages. (defvar gnus-notifications-id-to-msg nil (#$ . 1627)) (defalias 'gnus-notifications-action #[(id key) "\306 \"\211\2058 \nA@\307\n8 \310\230\203$ \311\fC\"\210\312\313 !\2027 \314\230\2057 \315\f\316\317\f!\"\"\210\320\f!*)\207" [id gnus-notifications-id-to-msg group-article article group key assoc 2 "read" gnus-fetch-group gnus-select-frame-set-input-focus selected-frame "mark-read" gnus-update-read-articles delq gnus-list-of-unread-articles gnus-group-update-group] 7]) #@89 Send a notification about a new mail. Return a notification id if any, or t on success. (defalias 'gnus-notifications-notify #[(from subject photo-file) "\304\305!\203 \306\305\307\310 \311\312\313\314\315\306\316\317\"\320\n\321\322\323\324\325&\207\326\327 #\210\330\207" [from subject photo-file gnus-notifications-timeout fboundp notifications-notify gnus-funcall-no-warning :title :body :actions ("read" "Read" "mark-read" "Mark As Read") :on-action gnus-notifications-action :app-icon image-search-load-path "gnus/gnus.png" :image-path :app-name "Gnus" :category "email.arrived" :timeout message "New message from %s: %s" t] 20 (#$ . 2151)]) #@29 Get photo for mail address. (defalias 'gnus-notifications-get-photo #[(mail-address) "\205 \305\306!\205 \3071 \310\306 \"0\202 \210\311\211\203! \n\202@ \205@ \31210 \313 !0\2022 \210\311\211\314=?\205? \315\fA\316\"))\207" [gnus-notifications-use-google-contacts mail-address google-photo gnus-notifications-use-gravatar gravatar fboundp google-contacts-get-photo (error) gnus-funcall-no-warning nil (error) gravatar-retrieve-synchronously error plist-get :data] 4 (#$ . 2810)]) #@156 Get a temporary file with an image for MAIL-ADDRESS. You have to delete the temporary image yourself using `delete-image'. Returns nil if no image found. (defalias 'gnus-notifications-get-photo-file #[(mail-address) "\306!\211\205/ \307\310!\311\211\312\313\314!!\315\216r\fq\210 c\210)r\fq\210\316\317\211 \317\320%\210,*)\207" [mail-address photo coding-system-for-write photo-file #1=#:temp-buffer #2=#:temp-file gnus-notifications-get-photo make-temp-file "gnus-notifications-photo-" binary get-buffer-create generate-new-buffer-name " *temp file*" #[nil "\301!\205 \302!\207" [#1# buffer-name kill-buffer] 2] write-region nil 0] 7 (#$ . 3306)]) #@285 Send a notification on new message. This check for new messages that are in group with a level lower or equal to `gnus-notifications-minimum-level' and send a notification using `notifications-notify' for it. This is typically a function to add in `gnus-after-getting-new-news-hook' (defalias 'gnus-notifications #[nil "\306\211\205\n@\211@\307!\fX\203\373 \310 \"J@\211\247\205' \311V)\203\373 \312\"\206P \312\211\306B\211\235\203F \202N B\211)\"\313!\306\211\203\372 \n@\211A>\204\363 rq\210\314\"\210\315 \210\316\317\320!\206 \321!\211A@ \203\244 \203\244 \306\322!\323#)\266\203\204\362 \324!\"\325@\206\263 \317\326!\"#\211#\203\347 AB\241\210#\322=\204\347 #E\211$%\235\204\346 $%B%)\"\203\361 \327\"!\210*+\nA\211\204] +)\nA\211\204 \306*\207" [gnus-newsrc-alist entry --dolist-tail-- group gnus-notifications-minimum-level gnus-newsrc-hashtb nil gnus-group-level intern-soft 0 assoc gnus-list-of-unread-articles gnus-request-head article-decode-encoded-words mail-extract-address-components mail-fetch-field "From" "" t string-match gnus-notifications-get-photo-file gnus-notifications-notify "Subject" delete-file unread gnus-notifications-sent #1=#:x group-notifications article nntp-server-buffer address-components address gnus-ignored-from-addresses inhibit-changing-match-data photo-file notification-id #2=#:x gnus-notifications-id-to-msg] 8 (#$ . 3974)]) (provide 'gnus-notifications)