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KO}ӽmSşذqsOy?\[,d@'73'j%kOe`1.g2"e =YIzS2|zŐƄa\U,dP;jhhhaxǶ?КZ՚.q SE+XrbOu%\GتX(H,N^~]JyEZQKceTQ]VGYqnah;y$cQahT&QPZ*iZ8UQQM.qo/T\7X"u?Mttl2Xq(IoW{R^ ux*SYJ! 4S.Jy~ BROS[V|žKNɛP(L6V^|cR7i7nZW1Fd@ Ara{詑|(T*dN]Ko?s=@ |_EvF]׍kR)eBJc" MUUbY6`~V޴dJKß&~'d3i WWWWWW
Current Directory: /usr/share/emacs/24.3/lisp/mh-e
Viewing File: /usr/share/emacs/24.3/lisp/mh-e/mh-search.elc
;ELC ;;; Compiled by mockbuild@buildfarm01-new.corp.cloudlinux.com on Tue Nov 11 12:58:34 2025 ;;; from file /builddir/build/BUILD/emacs-24.3/lisp/mh-e/mh-search.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\300\302!\210\300\303!\207" [require mh-e gnus-util imenu] 2) #@40 Cached value of chosen search program. (defvar mh-searcher nil (#$ . 644)) #@45 Function which executes the search program. (defvar mh-search-function nil (#$ . 725)) #@150 Function to parse the next line of output. Expected to return a list of three strings: name of the folder, message number, and optionally the match. (defvar mh-search-next-result-function nil (#$ . 819)) #@43 Function used to construct search regexp. (defvar mh-search-regexp-builder nil (#$ . 1029)) #@69 Folder that contains the folders resulting from the index searches. (defvar mh-index-folder "+mhe-index" (#$ . 1127)) #@64 Subfolder for `mh-index-folder' where flists output is placed. (defvar mh-flists-results-folder "sequence" (#$ . 1251)) (defvar mh-flists-called-flag nil) #@4914 Search your MH mail. This command helps you find messages in your entire corpus of mail. You can search for messages to or from a particular person or about a particular subject. In fact, you can also search for messages containing selected strings in any arbitrary header field or any string found within the messages. Out of the box, MH-E uses "pick" to find messages. With a little extra effort, you can set an indexing program which rewards you with extremely quick results. The drawback is that sometimes the index does not contain the words you're looking for. You can still use "pick" in these situations. You are prompted for the FOLDER to search. This can be "all" to search all folders. Note that the search works recursively on the listed folder. Next, an MH-Search buffer appears where you can enter search criteria SEARCH-REGEXP. From: To: Cc: Date: Subject: -------- Edit this template by entering your search criteria in an appropriate header field that is already there, or create a new field yourself. If the string you're looking for could be anywhere in a message, then place the string underneath the row of dashes. As an example, let's say that we want to find messages from Ginnean about horseback riding in the Kosciusko National Park (Australia) during January, 1994. Normally we would start with a broad search and narrow it down if necessary to produce a manageable amount of data, but we'll cut to the chase and create a fairly restrictive set of criteria as follows:\<mh-search-mode-map> From: ginnean To: Cc: Date: Jan 1994 Subject: -------- horse kosciusko As with MH-Letter mode, MH-Search provides commands like \[mh-to-field] to help you fill in the blanks.\<mh-folder-mode-map> If you find that you do the same thing over and over when editing the search template, you may wish to bind some shortcuts to keys. This can be done with the variable `mh-search-mode-hook', which is called when \[mh-search] is run on a new pattern.\<mh-search-mode-map> To perform the search, type \[mh-index-do-search]. Sometimes you're searching for text that is either not indexed, or hasn't been indexed yet. In this case you can override the default method with the pick method by running the command \[mh-pick-do-search]. The messages that are found are put in a temporary sub-folder of "+mhe-index" and are displayed in an MH-Folder buffer. This buffer is special because it displays messages from multiple folders; each set of messages from a given folder has a heading with the folder name.\<mh-folder-mode-map> The appearance of the heading can be modified by customizing the face `mh-search-folder'. You can jump back and forth between the headings using the commands \[mh-index-next-folder] and \[mh-index-previous-folder]. In addition, the command \[mh-index-visit-folder] can be used to visit the folder of the message at point. Initially, only the messages that matched the search criteria are displayed in the folder. While the temporary buffer has its own set of message numbers, the actual messages numbers are shown in the visited folder. Thus, the command \[mh-index-visit-folder] is useful to find the actual message number of an interesting message, or to view surrounding messages with the command \[mh-rescan-folder]. Because this folder is temporary, you'll probably get in the habit of killing it when you're done with \[mh-kill-folder]. You can regenerate the results by running this command with a prefix argument REDO-SEARCH-FLAG. Note: This command uses an "X-MHE-Checksum:" header field to cache the MD5 checksum of a message. This means that if an incoming message already contains an "X-MHE-Checksum:" field, that message might not be found by this command. The following "procmail" recipe avoids this problem by renaming the existing header field: :0 wf | formail -R "X-MHE-Checksum" "X-Old-MHE-Checksum" Configuring Indexed Searches The command \[mh-search] runs the command defined by the option `mh-search-program'. The default value is "Auto-detect" which means that MH-E will automatically choose one of "swish++", "swish-e", "mairix", "namazu", "pick" and "grep" in that order. If, for example, you have both "swish++" and "mairix" installed and you want to use "mairix", then you can set this option to "mairix". The documentation for the following commands describe how to set up the various indexing programs to use with MH-E. - `mh-swish++-execute-search' - `mh-swish-execute-search' - `mh-mairix-execute-search' - `mh-namazu-execute-search' - `mh-pick-execute-search' - `mh-grep-execute-search' In a program, if FOLDER is "+" or nil, then mail in all folders are searched. Optional argument WINDOW-CONFIG stores the window configuration that will be restored after the user quits the folder containing the index search results. (defalias 'mh-search #[(folder search-regexp &optional redo-search-flag window-config) "\300\301\215\207" [--cl-block-mh-search-- (byte-code "\203 \203\n\203 \204\306\307\310\f\"\210)\311\312\313\"\210 9\203.\31423\"\210\311\312\313\"\210\315 \210\3163\20694\f\317\3205\321 !#6789\203v\f\203v\322p!\323!\210\212\324\313\325#\210)\324\313\326\327\330%\2106)\202}\3316 \"6\317\332:2\333\313O#\334\335\336\"\334\335\336\";<=\337\340>\"\210?= \"\210\337\341>\"\210eb\210\313@A \211@\203\374@\342=\204\256\343@@<\"\204\335@@B<C\344B\334\335\336\"C#\210*@\211DA@)E\343@@<\"F\344E\306F#\210*\202\256)\345\346<\"\210\3476\313<;D#\210eb\210\313y\210\350 \210\351\313!\210\352 \203&\353\306G\"\210\203/7\20443\2038842> E \204F\354 \210\337\355\356\357>!!\316H\345\360 \"\210H)\316I\345\361 \"\210I)$.\207" [redo-search-flag mh-index-data mh-index-sequence-search-flag mh-flists-called-flag mh-index-previous-search search-regexp t apply mh-index-sequenced-messages throw --cl-block-mh-search-- nil mh-search-folder mh-checksum-choose 0 format "%s/%s" mh-index-generate-pretty-name buffer-name mh-process-or-undo-commands mh-exec-cmd-quiet "rmf" "folder" "-create" "-fast" mh-index-new-folder "%s%s" 1 make-hash-table :test equal message "Executing %s... " "Processing %s output... " error gethash puthash maphash #[(folder msgs) "\306\307\"@\310\311\312\313\n\"\210 \237)\314\"\315\316\n\317\320\f&\210 \2031\321\311\322\323\324\325\307\326\327 \"&\210\n\311 :\203^ @T\211\330B#\210* A\211\2027,\311\207" [folder #1=#:--cl-var-- msgs cur index-folder #2=#:--cl-var-- mh-translate-range "cur" sort nil maphash #[(msg #3=#:--cl-var--) " B\211\207" [msg #1#] 2] < mh-exec-cmd "refile" "-src" "-link" mh-exec-cmd-quiet "mark" "-add" "-zero" "-sequence" format "%s" puthash msg result-count #4=#:v origin-map #5=#:v] 12] mh-visit-folder mh-update-sequences mh-recenter mh-speed-flists-active-p mh-speed-flists mh-index-write-data "%s found %s matches in %s folders" upcase-initials symbol-name #[(#6=#:--cl-var-- msg-hash) "\302 !\\\211\207" [#7=#:--cl-var-- msg-hash hash-table-count] 3] #[(#8=#:--cl-var-- msg-hash) "\302!\303V\205\f T\211\207" [msg-hash #9=#:--cl-var-- hash-table-count 0] 2] folder window-config mh-previous-window-config mh-index-folder index-folder previous-search old-window-config result-count mh-user-path origin-map folder-results-map folder-path mh-searcher mh-search-function next-result mh-search-next-result-function #10=#:v #11=#:v x #12=#:v #13=#:v mh-current-folder #7# #9#] 9)] 2 (#$ . 1414) (list (progn (mh-find-path) (if (mh-search-choose (and current-prefix-arg mh-index-previous-search (cadr mh-index-previous-search))) nil (error "No search program found")) (or (and current-prefix-arg mh-index-sequence-search-flag) (and current-prefix-arg (car mh-index-previous-search)) (mh-prompt-for-folder "Search" "+" nil "all" t))) (or (and current-prefix-arg (car (cdr (cdr mh-index-previous-search)))) mh-search-regexp-builder (read-string (format "%s regexp: " (upcase-initials (symbol-name mh-searcher))))) current-prefix-arg (if (and (not (and current-prefix-arg (car (cdr (cdr mh-index-previous-search))))) mh-search-regexp-builder) (current-window-configuration) nil))]) #@171 Search FOLDER for messages matching a pattern. In a program, argument WINDOW-CONFIG is the current window configuration and is used when the search folder is dismissed. (defalias 'mh-search-folder #[(folder window-config) "\304\232\203\n \202 \305\306!\210\307\310 !\204\311\312!\204#\313 \210\202'\314\315!\210\316\301\317 $\210\314\320\321\322!\")\207" [folder mh-current-folder pick-folder window-config "+" switch-to-buffer-other-window "search-pattern" zerop buffer-size y-or-n-p "Reuse pattern? " mh-make-pick-template message "" mh-make-local-vars mh-previous-window-config "%s" substitute-command-keys "Type \\[mh-index-do-search] to search messages, \\[mh-pick-do-search] to use pick, \\[mh-help] for help"] 5 (#$ . 9665) (list (mh-prompt-for-folder "Search" mh-current-folder nil nil t) (current-window-configuration))]) #@67 Initialize the current buffer with a template for a pick pattern. (defalias 'mh-make-pick-template #[nil "\303\304 \210)\305\306\307\310\311\312\261\210\313 \210eb\210\314\315 \nW\203C\316``T\317#\210\316\320 \321Z\320 S\322#\210\316`\320 S\323#\210\324y\210 T\211\202*\316``T\325#\210\316`\320 S\326#\210db\207" [inhibit-read-only i --dotimes-limit-- t erase-buffer "From: \n" "To: \n" "Cc: \n" "Date: \n" "Subject: \n" "---------\n" mh-search-mode 5 0 add-text-properties (front-sticky t) mh-line-end-position 2 (rear-nonsticky t) (read-only t) nil (front-sticky t) (read-only t)] 7 (#$ . 10513)]) #@381 Display unseen messages. If you use a program such as "procmail" to use "rcvstore" to file your incoming mail automatically, you can display new, unseen, messages using this command. All messages in the "unseen" sequence from the folders in `mh-new-messages-folders' are listed. With a prefix argument, enter a space-separated list of FOLDERS, or nothing to search all folders. (defalias 'mh-index-new-messages #[(folders) "\302 \"\207" [folders mh-unseen-seq mh-index-sequenced-messages] 3 (#$ . 11128) (list (if current-prefix-arg (split-string (read-string "Search folder(s) (default all): ")) mh-new-messages-folders))]) #@218 Display ticked messages. All messages in `mh-tick-seq' from the folders in `mh-ticked-messages-folders' are listed. With a prefix argument, enter a space-separated list of FOLDERS, or nothing to search all folders. (defalias 'mh-index-ticked-messages #[(folders) "\302 \"\207" [folders mh-tick-seq mh-index-sequenced-messages] 3 (#$ . 11763) (list (if current-prefix-arg (split-string (read-string "Search folder(s) (default all): ")) mh-ticked-messages-folders))]) #@248 Display messages in any sequence. All messages from the FOLDERS in `mh-new-messages-folders' in the SEQUENCE you provide are listed. With a prefix argument, enter a space-separated list of folders at the prompt, or nothing to search all folders. (defalias 'mh-index-sequenced-messages #[(folders sequence) "\204 \n\306\307\310\311\312\313\314$\211 !\232\2032\"\2024\315 #\312\211$\316\317 !!\203V q\210\nE%\306$\202d\320 !\203d\321\312\322 #\210\323\324$#$\306&\nE%\325 \210;\205\207\326\327\".\f\207" [sequence mh-unseen-seq folders mh-flists-search-folders mh-flists-sequence mh-flists-called-flag t flists mh-flists-execute mh-mairix-next-result nil format "%s/%s/%s" current-window-configuration buffer-live-p get-buffer mh-folder-exists-p mh-exec-cmd-quiet "rmf" mh-search "+" mh-index-write-data message "%s" mh-searcher mh-search-function mh-search-next-result-function mh-user-path mh-mairix-folder mh-search-regexp-builder mh-index-folder mh-flists-results-folder new-folder mh-current-folder mh-previous-window-config window-config redo-flag mh-index-previous-search mh-index-sequence-search-flag] 6 (#$ . 12239) (list (if current-prefix-arg (split-string (read-string "Search folder(s) (default all): ")) mh-new-messages-folders) (mh-read-seq-default "Search" nil))]) #@234 Execute flists. Search for messages belonging to `mh-flists-sequence' in the folders specified by `mh-flists-search-folders'. If `mh-recursive-folders-flag' is t, then the folders are searched recursively. All arguments are IGNORED. (defalias 'mh-flists-execute #[(&rest ignored) "\306!q\210\307 \210\310\311!\204\312\313!\210\314\315!r q\210\316\216\317\n!\320\321\322\f\"\323 \324=\2033\325!!\202m \326=\203=\327\202m <\205m \"\326#\327$\":\203j\"@#$\323\325#!PP$\"A\211\"\202M$+%\203v\330\202w\327\331 \332\321\333\f\"\334 \335\336\261 \210)\337ed\311\326\340!%+\207" [mh-temp-index-buffer #1=#:temp-buffer mh-flists-sequence seq mh-progs mh-flists-search-folders get-buffer-create erase-buffer executable-find "sh" error "Didn't find sh" generate-new-buffer " *temp*" ((byte-code "\301!\203\n\302!\210\301\207" [#1# buffer-name kill-buffer] 2)) symbol-name "for folder in `" expand-file-name "flists" " " t mh-quote-for-shell nil "" " -recurse" " -sequence " " -noshowzero -fast` ; do\n" "mhpath" " \"+$folder\" " "\n" "done\n" call-process-region get-buffer mh-inbox #2=#:--cl-var-- folder #3=#:--cl-var-- mh-recursive-folders-flag] 14 (#$ . 13588)]) #@119 Jump to the next folder marker. With non-nil optional argument BACKWARD-FLAG, jump to the previous group of results. (defalias 'mh-index-next-folder #[(&optional backward-flag) "\204\303\304!\207`\n\203\305\202\306y\210\n\203!\307\310e\311#\202&\312\310d\311#\203.\313 \202V\n\2038db\210\202;eb\210\n\203G\307\310e\311#\202L\312\310d\311#\203T\313 \202V b)\207" [mh-index-data point backward-flag message "Only applicable in an MH-E index search buffer" 0 1 re-search-backward "^+" t re-search-forward beginning-of-line] 4 (#$ . 14783) "P"]) #@37 Jump to the previous folder marker. (defalias 'mh-index-previous-folder #[nil "\300\301!\207" [mh-index-next-folder t] 2 (#$ . 15350) nil]) #@66 Visit original folder from where the message at point was found. (defalias 'mh-index-visit-folder #[nil "\204\306\307!\210\310\211\212n\203!l\203!\310\311\312\217\210\313\314!\2027\315 f\316\232\2033\317\315 \320 \"\2027\313\314!)\n\204E\321\211 \"\f\"@\322\n!\203T\323\324\325\n\"!\205d\326\n\310\327\330\321\n\"\"\210 \237)\"*\207" [mh-index-data msg folder mh-index-msg-checksum-map mh-index-checksum-origin-map #1=#:--cl-var-- error "Not in an index folder" nil (forward-line -1) ((error)) mh-get-msg-num t mh-line-beginning-position 43 buffer-substring-no-properties mh-line-end-position gethash get-buffer y-or-n-p format "Reuse buffer displaying %s? " mh-visit-folder maphash #[(x #2=#:--cl-var--) "\303 \"\205\f\nB\211\207" [x folder #1# mh-msg-exists-p] 3]] 7 (#$ . 15496) nil]) #@22 Menu for MH-E Search (defvar mh-pick-menu nil (#$ . 16314)) (byte-code "\301\302\303\304$\210\305\300\306\"\207" [mh-search-mode-map easy-menu-do-define mh-pick-menu "Menu for MH-E Search" ("Search" ["Perform Search" mh-index-do-search t] ["Search with pick" mh-pick-do-search t]) gnus-define-keys-1 ("?" mh-help "" mh-index-do-search "" mh-pick-do-search "" mh-to-field "" mh-to-field " " mh-to-field "" mh-to-field "" mh-to-field "b" mh-to-field "c" mh-to-field "m" mh-to-field "s" mh-to-field "t" mh-to-field)] 5) #@418 Key binding cheat sheet. This is an associative array which is used to show the most common commands. The key is a prefix char. The value is one or more strings which are concatenated together and displayed in the minibuffer if ? is pressed after the prefix character. The special key nil is used to display the non-prefixed commands. The substitutions described in `substitute-command-keys' are performed as well. (defvar mh-search-mode-help-messages '((nil "Perform search: \\[mh-index-do-search]\n" "Search with pick: \\[mh-pick-do-search]\n\n" "Move to a field by typing C-c C-f C-<field>\n" "where <field> is the first letter of the desired field\n" "(except for From: which uses \"m\").")) (#$ . 16868)) (byte-code "\300\301\302\303#\210\304\305N\204\300\304\305\306\307!#\210\310\311!\204 \300\311\312\301#\210\300\207" [put mh-search-mode mode-class special mh-search-mode-hook variable-documentation purecopy "Hook run when entering MH-Search mode.\nNo problems result if this variable is not bound.\n`add-hook' automatically binds it. (This is true for all hook variables.)" boundp mh-search-mode-map definition-name] 5) (defvar mh-search-mode-map (make-sparse-keymap)) (byte-code "\300\301N\204\302\300\301\303\304!#\210\305\306!\204\302\306\307\310#\210\300\207" [mh-search-mode-map variable-documentation put purecopy "Keymap for `mh-search-mode'." boundp mh-search-mode-syntax-table definition-name mh-search-mode] 5) (defvar mh-search-mode-syntax-table (make-syntax-table)) (byte-code "\300\301N\204\302\300\301\303\304!#\210\302\305\306\307#\207" [mh-search-mode-syntax-table variable-documentation put purecopy "Syntax table for `mh-search-mode'." mh-search-mode-abbrev-table definition-name mh-search-mode] 5) (defvar mh-search-mode-abbrev-table (progn (define-abbrev-table 'mh-search-mode-abbrev-table nil) mh-search-mode-abbrev-table)) (byte-code "\300\301N\204\302\300\301\303\304!#\210\302\305\306\307#\207" [mh-search-mode-abbrev-table variable-documentation put purecopy "Abbrev table for `mh-search-mode'." mh-search-mode derived-mode-parent nil] 5) #@672 Mode for creating search templates in MH-E.\<mh-search-mode-map> Edit this template by entering your search criteria in an appropriate header field that is already there, or create a new field yourself. If the string you're looking for could be anywhere in a message, then place the string underneath the row of dashes. To perform the search, type \[mh-index-do-search]. Sometimes you're searching for text that is either not indexed, or hasn't been indexed yet. In this case you can override the default method with the pick method by running the command \[mh-pick-do-search]. The hook `mh-search-mode-hook' is called upon entry to this mode. \{mh-search-mode-map} (defalias 'mh-search-mode #[nil "\306\300!\210\307\310 \210\311\312\313 !\210\314\f!\210 \315!\210\316!\210)\317\320!\207" [delay-mode-hooks major-mode mode-name mh-search-mode-map mh-search-mode-syntax-table mh-search-mode-abbrev-table make-local-variable t kill-all-local-variables mh-search-mode "MH-Search" use-local-map set-syntax-table easy-menu-add mh-set-help run-mode-hooks mh-search-mode-hook local-abbrev-table mh-pick-menu mh-search-mode-help-messages] 2 (#$ . 18966) nil]) #@123 Find messages using `mh-search-program'. If optional argument SEARCHER is present, use it instead of `mh-search-program'. (defalias 'mh-index-do-search #[(&optional searcher) "\306!\204\n\307\310!\210\311 \n !\211\203\312\f \313 $\202!\307\314!*\207" [searcher regexp-list mh-search-regexp-builder pattern mh-current-folder mh-previous-window-config mh-search-choose error "No search program found" mh-pick-parse-search-buffer mh-search nil "No search terms"] 6 (#$ . 20139) nil]) #@90 Find messages using "pick". Uses the pick method described in `mh-pick-execute-search'. (defalias 'mh-pick-do-search #[nil "\300\301!\207" [mh-index-do-search pick] 2 (#$ . 20633) nil]) #@214 Parse the search buffer contents. The function returns an alist. The car of each element is either the header name to search in or nil to search the whole message. The cdr of the element is the pattern to search. (defalias 'mh-pick-parse-search-buffer #[nil "\212\304\211\211\211eb\210m\204R\305\306\307 \310#\203\310\202L\311 \210`\n\203+`\2023\305\312\307 \310#\210`\n?\205A\313\314 S\"\227!\315\314 \307 \"!B B\304y\210\202\f -\207" [begin start in-body-flag pattern-list nil search-forward "--------" mh-line-end-position t beginning-of-line ":" intern buffer-substring-no-properties mh-index-parse-search-regexp] 5 (#$ . 20827)]) #@174 Construct parse tree for INPUT-STRING. All occurrences of &, |, ! and ~ in INPUT-STRING are replaced by AND, OR and NOT as appropriate. Then the resulting string is parsed. (defalias 'mh-index-parse-search-regexp #[(input-string) "\306\307\310!r q\210\311\216\nc\210\312\313\314\"\210\312\315\316\"\210\312\317\316\"\210\312\320\316\"\210\312\321\322\"\210\312\323\322\"\210\312\324\322\"\210\312\325\326\"\210\312\327\326\"\210\312\330\326\"\210\312\331\326\"\210\312\332\333\"\210\312\334\333\"\210\312\335\336\"\210\312\337\336\"\210\340\341ed{\"+\342\343!!\306\211\211\211.\306/\2110\203S0@\211/\332\232\203\213\344 B\202J/\345\232\203\231\346 B\202J/\347\232\203\247\350 B\202J/\351\232\203\265\352 B\202J/\335\232\203\375\353 \f\"\2111@1A@) @\346=\203\337 A\346\f\211A@D\fB @\352=\203J A\f\211A@\352\f\211A@ E\fB\202J @\346=\203, A\346/D\fB @\352=\203J A\f\211A@\352\f\211A@ E\fB\202J @\352=\203E A\352\f\211A@/E\fB\202J/\fB0A\2110\204y*\f\211A@ \204a\f\203f\354\355\"\210-\207" [input #1=#:temp-buffer input-string oper1 operand-stack op-stack nil generate-new-buffer " *temp*" ((byte-code "\301!\203\n\302!\210\301\207" [#1# buffer-name kill-buffer] 2)) mh-replace-string " " " " " AND " " and " "&" " -and " " OR " " or " "|" " -or " " NOT " " not " "!" "~" " -not " "(" " ( " " -lbrace " ")" " ) " " -rbrace " format "( %s )" mh-index-add-implicit-ops split-string paren "not" not "or" or "and" and mh-index-evaluate error "Invalid regexp: %s" tokens token --dolist-tail-- #2=#:--cl-var--] 5 (#$ . 21486)]) #@44 Add implicit operators in the list TOKENS. (defalias 'mh-index-add-implicit-ops #[(tokens) "\304\211\211 \203N \211A@\211\305\232\204\"\306\232\204\"\307\232\203+\304\nB\202 \2039\306\nB\211\2039\304\nB\310\232\204\311\232\204\312\202\n\237+\207" [current literal-seen result tokens nil ")" "and" "or" "(" "not" t] 4 (#$ . 23083)]) #@74 Read expression till starting paren based on OP-STACK and OPERAND-STACK. (defalias 'mh-index-evaluate #[(op-stack operand-stack) "\300\301\215\207" [--cl-block-mh-index-evaluate-- (byte-code "\304\211\n\203Q\n\211A@\211\305=\203\306\307\n D\"\210\202 \310=\2031\310 \211A@D B\202 \311=\204= \312=\203 \211A@ \211A@E B\202\313\314!*\207" [oper1 op op-stack operand-stack nil paren throw --cl-block-mh-index-evaluate-- not and or error "Ran out of tokens"] 5)] 2 (#$ . 23452)]) #@36 List of possible searcher choices. (defvar mh-search-choices '((swish++ mh-swish++-binary mh-swish++-execute-search mh-swish++-next-result mh-swish++-regexp-builder) (swish mh-swish-binary mh-swish-execute-search mh-swish-next-result nil) (mairix mh-mairix-binary mh-mairix-execute-search mh-mairix-next-result mh-mairix-regexp-builder) (namazu mh-namazu-binary mh-namazu-execute-search mh-namazu-next-result nil) (pick mh-pick-binary mh-pick-execute-search mh-pick-next-result mh-pick-regexp-builder) (grep mh-grep-binary mh-grep-execute-search mh-grep-next-result nil)) (#$ . 23959)) #@328 Choose a searching function. The side-effects of this function are that the variables `mh-searcher', `mh-search-function', and `mh-search-next-result-function' are set according to the first searcher in `mh-search-choices' present on the system. If optional argument SEARCHER is present, use it instead of `mh-search-program'. (defalias 'mh-search-choose #[(&optional searcher) "\300\301\215\207" [--cl-block-nil-- (byte-code "\203\f\306 \"C\202\n\203\306\n \"C\202  \203N \211A@\211\211A@)J\211 \203J\f@\307\f8\310\f8\311\f8\312\313\"\210*\202)\314\207" [searcher mh-search-choices mh-search-program program-alist current x assoc 2 3 4 throw --cl-block-nil-- nil executable mh-searcher mh-search-function mh-search-next-result-function mh-search-regexp-builder] 4)] 2 (#$ . 24552)]) (defvar mh-swish++-binary (byte-code "\300\301!\206 \300\302!\207" [executable-find "search++" "search"] 2)) (defvar mh-swish++-directory ".swish++") (defvar mh-swish-folder nil) #@1222 Execute swish++. In the examples below, replace "/home/user/Mail" with the path to your MH directory. First create the directory "/home/user/Mail/.swish++". Then create the file "/home/user/Mail/.swish++/swish++.conf" with the following contents: IncludeMeta Bcc Cc Comments Content-Description From Keywords IncludeMeta Newsgroups Resent-To Subject To IncludeMeta Message-Id References In-Reply-To IncludeFile Mail * IndexFile /home/user/Mail/.swish++/swish++.index Use the following command line to generate the swish index. Run this daily from cron: find /home/user/Mail -path /home/user/Mail/mhe-index -prune \ -o -path /home/user/Mail/.swish++ -prune \ -o -name "[0-9]*" -print \ | index -c /home/user/Mail/.swish++/swish++.conf - This command does not index the folders that hold the results of your searches in "+mhe-index" since they tend to be ephemeral and the original messages are indexed anyway. On some systems (Debian GNU/Linux, for example), use "index++" instead of "index". In a program, FOLDER-PATH is the directory in which SEARCH-REGEXP is used to search. (defalias 'mh-swish++-execute-search #[(folder-path search-regexp) "\306!q\210\307 \210 \204\310\311!\210\312 \313\314\313\315\316\317\320\n #\f&\210eb\210 \211GS\313O\211\321\232\2035 \2029\317\322 \")\211\207" [mh-temp-index-buffer mh-swish++-binary mh-user-path mh-swish++-directory search-regexp folder-path get-buffer-create erase-buffer error "Set `mh-swish++-binary' appropriately" call-process nil (t nil) "-m" "10000" format "-i%s%s/swish++.index" "/" "%s/" last-char mh-swish-folder] 12 (#$ . 25552)]) (defalias 'mh-swish++-next-result 'mh-swish-next-result) #@75 Generate query for swish++. REGEXP-LIST is an alist of fields and values. (defalias 'mh-swish++-regexp-builder #[(regexp-list) "\304 \305\211\203M @\211A\203F\306\n@\203\307\202\304\n@\203*\310\n@!\202+\304\n@\2034\311\2025\304\312\nA!\n@\203B\313\202C\304\260 A\211\204\n*\314\305O)\207" [regexp regexp-list elem --dolist-tail-- "" nil " and " "(" symbol-name " = " mh-swish++-print-regexp ")" 4] 8 (#$ . 27358)]) #@48 Return infix expression corresponding to EXPR. (defalias 'mh-swish++-print-regexp #[(expr) ":\204\n\302\303\"\207@\304=\203\302\305\306\211A@)!\"\207\302\307\306\211A@)!\310@!\306AA@!$\207" [expr x format "%s" not "(not %s)" mh-swish++-print-regexp "(%s %s %s)" symbol-name] 7 (#$ . 27801)]) (defvar mh-swish-binary (executable-find "swish-e")) (defvar mh-swish-directory ".swish") #@1515 Execute swish-e. In the examples below, replace "/home/user/Mail" with the path to your MH directory. First create the directory "/home/user/Mail/.swish". Then create the file "/home/user/Mail/.swish/config" with the following contents: DefaultContents TXT* IndexDir /home/user/Mail IndexFile /home/user/Mail/.swish/index IndexName "Mail Index" IndexDescription "Mail Index" IndexPointer "http://nowhere" IndexAdmin "nobody" #MetaNames automatic IndexReport 3 FollowSymLinks no UseStemming no IgnoreTotalWordCountWhenRanking yes WordCharacters abcdefghijklmnopqrstuvwxyz0123456789- BeginCharacters abcdefghijklmnopqrstuvwxyz EndCharacters abcdefghijklmnopqrstuvwxyz0123456789 IgnoreLimit 50 1000 IndexComments 0 FileRules filename contains \D FileRules pathname contains /home/user/Mail/.swish FileRules pathname contains /home/user/Mail/mhe-index This configuration does not index the folders that hold the results of your searches in "+mhe-index" since they tend to be ephemeral and the original messages are indexed anyway. If there are any directories you would like to ignore, append lines like the following to "config": FileRules pathname contains /home/user/Mail/scripts Use the following command line to generate the swish index. Run this daily from cron: swish-e -c /home/user/Mail/.swish/config In a program, FOLDER-PATH is the directory in which SEARCH-REGEXP is used to search. (defalias 'mh-swish-execute-search #[(folder-path search-regexp) "\306!q\210\307 \210 \204\310\311!\210\312 \313\314\313\315\n\316\317\320 \f#&\210eb\210 \211GS\313O\211\321\232\2035 \2029\317\322 \")\211\207" [mh-temp-index-buffer mh-swish-binary search-regexp mh-user-path mh-swish-directory folder-path get-buffer-create erase-buffer error "Set `mh-swish-binary' appropriately" call-process nil (t nil) "-w" "-f" format "%s%s/index" "/" "%s/" last-char mh-swish-folder] 13 (#$ . 28203)]) #@40 Get the next result from swish output. (defalias 'mh-swish-next-result #[nil "\300\301\215\302y\210\207" [--cl-block-nil-- (byte-code "m\204 `f\306\232\203\307\310\311\"\210`f\312\232\203\307\310\313\"\210\314\315\316 \317#\314\315\316 \317#\2032 \2047\307\310\313\"\210 S\320\321 \"!\204H\307\310\313\"\210\322\323\317#\204U\307\310\313\"\210\321`T\"\324 \n\"\204g\307\310\313\"\210\324\f\n\"\203\204\325\225\nGSW\203\204\326\327\n\325\225\nGSO\"\202\210\307\310\313\")\321`T \"\311\330\331\217\211\203\234 \202\240\307\310\313\"*\311E*\207" [start end s mh-swish-folder mh-user-path n 46 throw --cl-block-nil-- nil 35 error search-forward " " mh-line-end-position t file-exists-p buffer-substring-no-properties search-backward "/" string-match 0 format "+%s" (string-to-number s) ((error))] 6) nil] 2 (#$ . 30224)]) (defvar mh-mairix-binary (executable-find "mairix")) (defvar mh-mairix-directory ".mairix") (defvar mh-mairix-folder nil) #@731 Execute mairix. In the examples below, replace "/home/user/Mail" with the path to your MH directory. First create the directory "/home/user/Mail/.mairix". Then create the file "/home/user/Mail/.mairix/config" with the following contents: base=/home/user/Mail # List of folders that should be indexed. 3 dots at the end means there # are subfolders within the folder mh=archive...:inbox:drafts:news:sent:trash vfolder_format=mh database=/home/user/Mail/.mairix/database Use the following command line to generate the mairix index. Run this daily from cron: mairix -f /home/user/Mail/.mairix/config In a program, FOLDER-PATH is the directory in which SEARCH-REGEXP-LIST is used to search. (defalias 'mh-mairix-execute-search #[(folder-path search-regexp-list) "\306!q\210\307 \210 \204\310\311!\210\312\313 \314\315\314\316\317\320\321\n #\f& \210eb\210 \211GS\314O\211\322\232\2036 \202:\320\323 \")\211\207" [mh-temp-index-buffer mh-mairix-binary mh-user-path mh-mairix-directory search-regexp-list folder-path get-buffer-create erase-buffer error "Set `mh-mairix-binary' appropriately" apply call-process nil (t nil) "-r" "-f" format "%s%s/config" "/" "%s/" last-char mh-mairix-folder] 13 (#$ . 31196)]) #@40 Return next result from mairix output. (defalias 'mh-mairix-next-result #[nil "\300\301\215\302y\210\207" [--cl-block-nil-- (byte-code "m\204\fn\203l\203\305\306\307\"\210\307f\310=\204\305\306\311\"\210`\307\211\312 \313 \314#\2043\305\306\311\"\210\315\224b\210`\n\232\204B\305\306\311\"\210 b\210\316\317\n\314#\204R\305\306\311\"\210`T\nb\210\313\f \314#\204e\305\306\311\"\210\320\321\322`S\"\"\323\322 \"!\307E+\207" [msg-start end start mh-mairix-folder mh-user-path throw --cl-block-nil-- nil 47 error mh-line-end-position search-forward t 0 search-backward "/" format "+%s" buffer-substring-no-properties string-to-number] 5) nil] 2 (#$ . 32459)]) #@74 Generate query for mairix. REGEXP-LIST is an alist of fields and values. (defalias 'mh-mairix-regexp-builder #[(regexp-list) "\306 \306\211\203 @\211A\203\n@\307=\203\310\202\242\n@\311=\203(\312\202\242\n@\313=\2033\314\202\242\n@\315=\203>\316\202\242\n@\317=\203I\320\202\242\n@\321=\203T\322\202\242\n@\323=\203_\324\202\242\n@\325=\203j\326\202\242\n@\327=\203u\330\202\242\n@\331=\203\200\332\202\242\n@\333=\203\213\334\202\242\n@\335=\203\226\336\202\242\n@\337=\203\241\340\202\242\341\342\nA!A\341\211\306'\211\203 @\211'A\341(\211)\306*\211\203\366 @*(\343*:\204\330\341\202\331\344*:\204\344*\202\354*\211+A@)R( A\211\204\307*\f\345(\346\306OQ* A\211\204\263*\f\346\306O*PB A\211\204\n*)\207" [result regexp-list pair --dolist-tail-- final sop nil to "t:" from "f:" cc "c:" to-or-cc "tc:" address "a:" subject "s:" subject-or-body "bs:" date "d:" message-id "m:" message-body "b:" message-size "z:" message-attachment-name "n:" message-flags "F:" "" mh-mairix-convert-to-sop* "," "~" "/" 1 conjunct expr-string expr-list e x] 7 (#$ . 33141)]) #@38 Convert EXPR to sum of product form. (defalias 'mh-mairix-convert-to-sop* #[(expr) ":\204 \306\307DD\207@\306=\2038\306\310\311A\"\312\211 :\2033 @\313\nA! \244 A\211\202 \237+B\207@\307=\203\260\310\311A\"\312\211\211\211A@\203\255\211A@\312 A\312\211\203\243@\fA\312\211\203\231@\307\314AA\"BBA\211\204|*A\211\204l*\306)B\202Q +\207\211A@):\204\301\306\307DD\207A@@\315=\203\322\311A@A@!\207A@@\307=\203\347\311\306\310\316A@A\"B!\207A@@\306=\203\374\311\307\310\317A@A\"B!\207\320\321\"\207" [expr #1=#:--cl-var-- e #2=#:--cl-var-- next-factor result or and mapcar mh-mairix-convert-to-sop* nil reverse append not #[(x) "\301D\207" [x not] 2] #[(x) "\301D\207" [x not] 2] error "Unreachable: %s" conjuncts res t1 --dolist-tail-- t2 x] 6 (#$ . 34272)]) (defvar mh-namazu-binary (executable-find "namazu")) (defvar mh-namazu-directory ".namazu") (defvar mh-namazu-folder nil) #@870 Execute namazu. In the examples below, replace "/home/user/Mail" with the path to your MH directory. First create the directory "/home/user/Mail/.namazu". Then create the file "/home/user/Mail/.namazu/mknmzrc" with the following contents: package conf; # Don't remove this line! $ADDRESS = 'user@localhost'; $ALLOW_FILE = "[0-9]*"; $EXCLUDE_PATH = "^/home/user/Mail/(mhe-index|spam)"; This configuration does not index the folders that hold the results of your searches in "+mhe-index" since they tend to be ephemeral and the original messages are indexed anyway. Use the following command line to generate the namazu index. Run this daily from cron: mknmz -f /home/user/Mail/.namazu/mknmzrc -O /home/user/Mail/.namazu \ -q /home/user/Mail In a program, FOLDER-PATH is the directory in which SEARCH-REGEXP is used to search. (defalias 'mh-namazu-execute-search #[(folder-path search-regexp) "\306\307 #\310\n!\204\311\312\n\"\210\313 !\204\311\314!\210\315\f!q\210\316 \210\317 \320\321\320\322 \n&\210eb\210\211GS\320O\211\323\232\203E\202J\306\324\")\211)\207" [mh-user-path mh-namazu-directory namazu-index-directory mh-namazu-binary mh-temp-index-buffer search-regexp format "%s%s" file-exists-p error "Namazu directory %s not present" executable-find "Set `mh-namazu-binary' appropriately" get-buffer-create erase-buffer call-process nil (t nil) "-alR" "/" "%s/" folder-path last mh-namazu-folder] 9 (#$ . 35248)]) #@41 Get the next result from namazu output. (defalias 'mh-namazu-next-result #[nil "\300\301\215\302y\210\207" [--cl-block-nil-- (byte-code "m\203 \306\307\310\"\210\311`\312 \"\313 \"\314\232\204\306\307\315\"\210\316!\204(\306\307\315\"\210\313\n\"\210\314\225\310O\317\320 \"\211\204A\306\307\315\"\210\321\322 \314\fO\"\310\323\324\217\211\203U \202Y\306\307\315\")\310E+\207" [file-name mh-namazu-folder mh-user-path folder/msg mark n throw --cl-block-nil-- nil buffer-substring-no-properties mh-line-end-position string-match 0 error file-exists-p mh-search-from-end 47 format "+%s" (byte-code "\302 T\303O!\207" [folder/msg mark string-to-number nil] 4) ((error))] 6) nil] 2 (#$ . 36737)]) (defvar mh-pick-binary "pick") #@69 Search components that are supported by single-dash option in pick. (defconst mh-pick-single-dash '(cc date from subject to) (#$ . 37483)) #@282 Execute pick. Read "pick(1)" or the section Finding Messages with pick in the MH book to find out more about how to enter the criteria (see URL `http://www.ics.uci.edu/~mh/book/mh/finpic.htm'). In a program, FOLDER-PATH is the directory in which SEARCH-REGEXP is used to search. (defalias 'mh-pick-execute-search #[(folder-path search-regexp) "\306!q\210\307 \210\310 \nG\311O!\211\311\f:\203=\f@\312 P\211\313\261\210\314\315\316\317\"\311\320\311 \321&\210\fA\211\202+eb\207" [mh-temp-index-buffer folder-path mh-user-path folders #1=#:--cl-var-- folder get-buffer-create erase-buffer mh-folder-list nil "+" "\n" apply call-process expand-file-name "pick" (t nil) "-list" mh-progs search-regexp] 10 (#$ . 37629)]) #@37 Return the next pick search result. (defalias 'mh-pick-next-result #[nil "\300\301\215\302y\210\207" [--cl-block-nil-- (byte-code "m\203 \301\302\303\"\210\304\305\306 \307#\203\310\311 \306 \"\301\302\312\"\210\304\313\306 \307#\204,\301\302\312\"\210\314\310\311 \306 \"!\303E\207" [mh-index-pick-folder throw --cl-block-nil-- nil search-forward-regexp "^+" mh-line-end-position t buffer-substring-no-properties mh-line-beginning-position error "^[1-9][0-9]*$" string-to-number] 5) nil] 2 (#$ . 38369)]) #@52 Generate pick search expression from PATTERN-LIST. (defalias 'mh-pick-regexp-builder #[(pattern-list) "\305 \305\211\203a @\211A\203Z\306\307\310\311\312!\203)\n@\203)\313\314\nA\"\202+\nA\n@\203U\311\312!\203>\313\315\n@\"\202V\n@\f\235\203M\313\316\n@\"\202V\313\317\n@\"\202V\320\"\321$ A\211\204\n*A)\207" [result pattern-list pattern --dolist-tail-- mh-pick-single-dash nil append ("-and" "-lbrace") mh-pick-construct-regexp mh-variant-p gnu-mh format "--pattern=%s" "--component=%s" "-%s" "--%s" "-search" ("-rbrace")] 9 (#$ . 38887)]) #@99 Construct pick compatible expression corresponding to EXPR. COMPONENT is the component to search. (defalias 'mh-pick-construct-regexp #[(expr component) ":\204 D\207@\303=\203'\304\305\306\211A@) \"\307\306AA@ \"\310$B\207@\311=\203E\304\305\306\211A@) \"\312\306AA@ \"\313$B\207@\314=\203]\304\315\305\306\211A@) \"\316\"BB\207\317\320@\"\207" [expr component x and "-lbrace" append mh-pick-construct-regexp ("-and") ("-rbrace") or ("-or") ("-rbrace") not "-not" ("-rbrace") error "Unknown operator %s seen"] 8 (#$ . 39455)]) (defvar mh-grep-binary (executable-find "grep")) #@324 Execute grep. Unlike the other search methods, this method does not use the MH-Search buffer. Instead, you simply enter a regular expression in the minibuffer. For help in constructing regular expressions, see your man page for "grep". In a program, FOLDER-PATH is the directory in which SEARCH-REGEXP is used to search. (defalias 'mh-grep-execute-search #[(folder-path search-regexp) "\304!q\210\305 \210\306 \307\310\307\311\312\n &\210eb\207" [mh-temp-index-buffer mh-grep-binary search-regexp folder-path get-buffer-create erase-buffer call-process nil (t nil) "-i" "-r"] 9 (#$ . 40057)]) #@182 Read the next result. Parse it and return the message folder, message index and the match. If no other matches left then return nil. If the current record is invalid return 'error. (defalias 'mh-grep-next-result #[nil "\300\301\215\302y\210\207" [--cl-block-nil-- (byte-code "m\203 \306\307\310\"\210\311 \312 \310\211\nb\210\313\f \314#\204#\306\307\315\"\210`\313\316 \314#\2042\306\307\315\"\210\317` \"\320u\210`\321\322 \314#\204I\306\307\315\"\210\323\324\317 `\"\"\310\325\326\217\211\203_\202c\306\307\315\") E-\207" [msg-end folder-start bol-pos eol-pos mh-user-path match throw --cl-block-nil-- nil mh-line-end-position mh-line-beginning-position search-forward t error ":" buffer-substring-no-properties -1 search-backward "/" format "+%s" (byte-code "\301\302`T\"!\207" [msg-end string-to-number buffer-substring-no-properties] 4) ((error)) n] 6) nil] 2 (#$ . 40661)]) #@166 Partition the messages based on source folder. Returns an alist with the folder names in the car and the cdr being the list of messages originally from that folder. (defalias 'mh-index-group-by-folder #[nil "\212eb\210\303\304\305\"\306\307 \"\210\310\306\311\"\210\n\237+\207" [result-table mh-index-msg-checksum-map #1=#:--cl-var-- make-hash-table :test equal maphash #[(msg #2=#:--cl-var--) "\306\211 \"\n\"@\f\307 \306 \"B #*\207" [msg mh-index-msg-checksum-map mh-index-checksum-origin-map #3=#:v result-table #4=#:v gethash puthash] 6] nil #[(x #5=#:--cl-var--) "\303 \"\237B\nB\211\207" [x result-table #1# gethash] 4]] 3 (#$ . 41567)]) #@57 Annotate the search results with original folder names. (defalias 'mh-index-insert-folder-headers #[nil "\306\307!\310 \307\211\211eb\210m\204@\311\211\306\307! \"\"@\211\203: \232\204:\2032\312\2023\313 \312\261\210 \307y\210\202\f\203L\314 \210\315\f\316\"\210\317 !\210-\320 \207" [last-folder current-folder buffer-read-only old-buffer-modified-flag cur-msg mh-index-msg-checksum-map mh-get-msg-num nil buffer-modified-p gethash "\n" "" mh-notate-cur mh-goto-msg t set-buffer-modified-p mh-index-create-imenu-index mh-index-checksum-origin-map] 6 (#$ . 42228)]) #@28 Delete the folder headers. (defalias 'mh-index-delete-folder-headers #[nil "\303\304!\305 \304\211\204m\204\304y\210\303\304!\211\203 eb\210m\204C\306\304f\307\"\2043\306\304f\310\"\203=`\304y\210`|\210\202\304y\210\202\n\203M\311\n\312\211#\210\313 !+\207" [buffer-read-only old-buffer-modified-flag cur-msg mh-get-msg-num nil buffer-modified-p char-equal 43 10 mh-goto-msg t set-buffer-modified-p] 5 (#$ . 42820)]) (mh-require 'which-func nil t) #@69 Create alist of folder names and positions in index folder buffers. (defalias 'mh-index-create-imenu-index #[nil "\212\303\300!\203 \304\305eb\210\306\307\305\304#\203,\212\310 \210\311`\312 \"\313 `\305\223B B)\202 \237\211*\207" [which-func-mode alist imenu--index-alist boundp t nil re-search-forward "^+" beginning-of-line buffer-substring-no-properties mh-line-end-position make-marker] 4 (#$ . 43291)]) #@60 Non-nil means that this folder was generated by searching. (defalias 'mh-search-p #[nil "\207" [mh-index-data] 1 (#$ . 43714)]) #@265 Delete/refile the actual messages. The copies in the searched folder are then deleted/refiled to get the desired result. Before deleting the messages we make sure that the message being deleted is identical to the one that the user has marked in the index buffer. (defalias 'mh-index-execute-commands #[nil "\212\306\307\310\311\312\313\n\306\211 :\203% @\314\fA! \244 A\211\202 \237+ \"\307\"\"\210 +\207" [mh-speed-flists-inhibit-flag folders mh-refile-list #1=#:--cl-var-- x #2=#:--cl-var-- nil t maphash #[(folder msgs) " B\306!\204\307\310\311\312\n!$\207rq\210 \f\313\n\314\216\315 ,\207" [folder folders msgs mh-refile-list mh-delete-list old-delete-list get-buffer apply mh-exec-cmd "rmm" mh-coalesce-msg-list nil ((byte-code "\306\307\"\n\310\211 :\203% @\211\f>\204\f B A\211\202\f \237+ \311\312 !\210\312 \2037\313 \210\310\207" [old-refile-list mh-refile-list old-delete-list #3=#:--cl-var-- x #4=#:--cl-var-- mapcar #[(x) "@A\305\211 :\203\" @\211\f>\204\n B A\211\202\n \237+B\207" [x #5=#:--cl-var-- y #6=#:--cl-var-- msgs nil] 4] nil mh-set-folder-modified-p mh-outstanding-commands-p mh-notate-deleted-and-refiled msgs mh-delete-list] 4)) mh-execute-commands old-refile-list] 6] mh-index-matching-source-msgs append reverse mh-delete-list] 7 (#$ . 43850)]) #@357 Given STRING generate a name which is suitable for use as a folder name. White space from the beginning and end are removed. All spaces in the name are replaced with underscores and all / are replaced with $. If STRING is longer than 20 it is truncated too. STRING could be a list of strings in which case they are concatenated to construct the base name. (defalias 'mh-index-generate-pretty-name #[(string) "\306\307!rq\210\310\216 ;\203 c\210\2027 @\203 @c\210 A\311\211\2036 @\312\n\261\210 A\211\204'*\313\314\315\"\313\316\315\"\313\317\315\"\320ed\321\322\323%\210\320ed\324\322\323%\210\320ed\325\322\323%\210eb\210m\204s\311f\326>\203s\327\330!\210\202adb\210o\204\211`Sf\331>\203\211\327\332!\210\202v\320ed\322\333\323%\210\320ed\334\333\323%\210\320ed\335\333\323%\210\320ed\336\333\323%\210\320ed\337\340\323%\210\341\342 \343\" \344=\203\307\345\346()#\202\325\f(\232\203\324\f\347P\202\325\f,\207" [#1=#:temp-buffer string s --dolist-tail-- out mh-searcher generate-new-buffer " *temp*" ((byte-code "\301!\203\n\302!\210\301\207" [#1# buffer-name kill-buffer] 2)) nil "_" mh-replace-string "-lbrace" " " "-rbrace" "-search" subst-char-in-region 40 32 t 41 45 (32 9 10 13 95) delete-char 1 (32 9 10 13 95) -1 95 9 10 13 47 36 truncate-string-to-width buffer-string 20 flists format "%s/%s" "1" mh-flists-results-folder mh-flists-sequence] 7 (#$ . 45183)]) #@25 Check if FOLDER exists. (defalias 'mh-folder-exists-p #[(folder) "\302!\205&\212\303\304!r q\210\305\216\306\307\310\311\312%\210eb\210\313\314\315\316\310O\"!,\207" [folder #1=#:temp-buffer mh-folder-name-p generate-new-buffer " *temp*" ((byte-code "\301!\203\n\302!\210\301\207" [#1# buffer-name kill-buffer] 2)) mh-exec-cmd-output "folder" nil "-fast" "-nocreate" looking-at format "+?%s" 1] 6 (#$ . 46592)]) #@32 Check if MSG exists in FOLDER. (defalias 'mh-msg-exists-p #[(msg folder) "\303\304\305 \306\307O\n$!\207" [mh-user-path folder msg file-exists-p format "%s%s/%s" 1 nil] 7 (#$ . 47018)]) #@399 Return a folder name based on NAME for search results of SEARCH-REGEXP. If folder NAME already exists and was generated for the same SEARCH-REGEXP then it is reused. Otherwise if the folder NAME was generated from a different search then check if NAME-2 can be used. Otherwise try NAME-3. This is repeated till we find a new folder name. If the folder returned doesn't exist then it is created. (defalias 'mh-index-new-folder #[(name search-regexp) "\306!\204\n\307\310!\210\311\312\313\312 \311\232\203\202!\314\315 #\316\n!\2030\317\n! \232\2038\n\312\211\2029\313\203C T\211\202\f,\320!\203S\321!\210\212\322\312\323#\210)\322\312\324\325\326%\210\327!\210\330\331!\203u\332!\210)\207" [name i candidate #1=#:--cl-var-- #2=#:--cl-var-- search-regexp mh-folder-name-p error "The argument should be a valid MH folder name" 1 nil t format "%s-%s" mh-folder-exists-p mh-index-folder-search-regexp get-buffer mh-process-or-undo-commands mh-exec-cmd-quiet "rmf" "folder" "-create" "-fast" mh-remove-from-sub-folders-cache boundp mh-speed-folder-map mh-speed-add-folder chosen-name] 7 (#$ . 47212)]) #@138 If FOLDER was created by a index search, return the search regexp. Return nil if FOLDER doesn't exist or the .mhe_index file is garbled. (defalias 'mh-index-folder-search-regexp #[(folder) "\300\301\302\217\207" [nil (byte-code "\305\306!rq\210\307\216\310\311\312 \n\313\314O $!\210eb\210\315\316!\210\317p!\211A@,\207" [#1=#:temp-buffer mh-user-path folder mh-index-data-file x generate-new-buffer " *temp*" ((byte-code "\301!\203\n\302!\210\301\207" [#1# buffer-name kill-buffer] 2)) insert-file-contents format "%s%s/%s" 1 nil forward-list 3 read] 8) ((error))] 3 (#$ . 48357)]) #@61 Mirror sequences present in source folders in index folder. (defalias 'mh-index-create-sequences #[nil "\306\307\310\"\311\312\313\n\"\210\314 \315\"\311\211\203z @\316\f\"\316\"\211@A\311\317\320\217 \311! :\203q @!\321!\"\203a\321!\"\211\"\f\"AB\241\210)\202h!\fDB A\211 \202=. A\211\204*#\311!#:\203\251#@!\322\323\324 \325\326!@!\327\330\331!A\"&\210#A\211#\202\203,\311\207" [seq-list seq-hash mh-index-data mh-current-folder msg --dolist-tail-- make-hash-table :test equal nil maphash #[(folder #1=#:--cl-var--) "\n\304 \305\306\307\"! #*\207" [folder #2=#:v seq-hash #3=#:v puthash mh-create-sequence-map mh-read-folder-sequences nil] 6] mh-translate-range "all" gethash (byte-code "\303\303 \n\"\"\207" [omsg ofolder seq-hash gethash] 5) ((error)) assoc apply mh-exec-cmd "mark" "-sequence" symbol-name "-add" mapcar #[(x) "\301\302\"\207" [x format "%s"] 3] mh-index-msg-checksum-map checksum mh-index-checksum-origin-map pair ofolder omsg #4=#:--cl-var-- seq #5=#:v #6=#:--cl-var--] 11 (#$ . 48952)]) #@187 Return a map from msg number to list of sequences in which it is present. SEQ-LIST is an assoc list whose keys are sequence names and whose cdr is the list of messages in that sequence. (defalias 'mh-create-sequence-map #[(seq-list) "\306  \307\n:\203U\n@\211@\310 >\204N\311 @!\203N A\307\f:\203M\f@ @\f  \312 \f\313 \"B#\210+\fA\211\202$*\nA\211\202+\207" [map seq-list #1=#:--cl-var-- seq #2=#:--cl-var-- msg make-hash-table nil mh-unpropagated-sequences mh-valid-seq-p puthash gethash #3=#:v #4=#:v #5=#:v] 7 (#$ . 50035)]) #@171 Add to SEQ the messages in the list MSGS. This function updates the source folder sequences. Also makes an attempt to update the source folder buffer if we have it open. (defalias 'mh-index-add-to-sequence #[(seq msgs) "\212\304 >?\205\305!\205\306\307\310\311\312 !\"\210\n*)\207" [seq mh-speed-flists-inhibit-flag folders msgs mh-unpropagated-sequences mh-valid-seq-p nil t maphash #[(folder msgs) " B\304\305\306\307\310\311\312\313\n!\314\315\316 !\"& \210\317!\205'rq\210\320 \n\")\207" [folder folders seq msgs apply mh-exec-cmd-quiet nil "mark" "-add" "-nozero" "-sequence" symbol-name mapcar #[(x) "\301\302\"\207" [x format "%s"] 3] mh-coalesce-msg-list get-buffer mh-put-msg-in-seq] 13] mh-index-matching-source-msgs] 4 (#$ . 50599)]) #@159 Delete from SEQ the messages in MSGS. This function updates the source folder sequences. Also makes an attempt to update the source folder buffer if present. (defalias 'mh-index-delete-from-sequence #[(seq msgs) "\212\304 >?\205\305!\205\306\307\310\311\312 !\"\210\n*)\207" [seq mh-speed-flists-inhibit-flag folders msgs mh-unpropagated-sequences mh-valid-seq-p nil t maphash #[(folder msgs) " B\304\305\306\307\310\311\312\313\n!\314\315\316 !\"& \210\317!\205(rq\210\320 \n\321#)\207" [folder folders seq msgs apply mh-exec-cmd-quiet nil "mark" "-del" "-nozero" "-sequence" symbol-name mapcar #[(x) "\301\302\"\207" [x format "%s"] 3] mh-coalesce-msg-list get-buffer mh-delete-msg-from-seq t] 13] mh-index-matching-source-msgs] 4 (#$ . 51366)]) #@42 List of sequences that aren't preserved. (defvar mh-unpropagated-sequences '(cur range subject search) (#$ . 52135)) #@200 Return a list of sequences that aren't propagated to the source folders. It is just the sequences in the variable `mh-unpropagated-sequences' in addition to the Previous-Sequence (see mh-profile 5). (defalias 'mh-unpropagated-sequences #[nil "\203 B\207 \207" [mh-previous-seq mh-unpropagated-sequences] 2 (#$ . 52259)]) #@238 Return a table of original messages and folders for messages in MSGS. If optional argument DELETE-FROM-INDEX-DATA is non-nil, then each of the messages, whose counter-part is found in some source folder, is removed from `mh-index-data'. (defalias 'mh-index-matching-source-msgs #[(msgs &optional delete-from-index-data) "\306\307\310\" \311\211\203p @\312\n\f\"\312 \" \203h@\203hA\203h\313A@ #\203hA@\314\312\"B#\210+\203h\315A\312@\"\"\210* A\211\204 *)\207" [table msgs msg --dolist-tail-- mh-index-msg-checksum-map checksum make-hash-table :test equal nil gethash mh-index-match-checksum puthash remhash mh-index-checksum-origin-map pair #1=#:v #2=#:v #3=#:v delete-from-index-data mh-index-data] 7 (#$ . 52591)]) #@69 Check if MSG in FOLDER has X-MHE-Checksum header value of CHECKSUM. (defalias 'mh-index-match-checksum #[(msg folder checksum) "\305\306!rq\210\307\216\310 \311\312\313\314\315\n &\210eb\210\316`\317 \"\f\230+\207" [#1=#:temp-buffer mh-scan-prog folder msg checksum generate-new-buffer " *temp*" ((byte-code "\301!\203\n\302!\210\301\207" [#1# buffer-name kill-buffer] 2)) mh-exec-cmd-output nil "-width" "80" "-format" "%{x-mhe-checksum}\n" buffer-substring-no-properties mh-line-end-position] 9 (#$ . 53370)]) #@27 Write index data to file. (defalias 'mh-index-write-data #[nil "\300\301\302\217\207" [nil (byte-code "\306=\204 \307\310\"\210 \n \f P\311\211\312\313\314!! \315\216rq\210\316\317\"\210\316\320\"\210\316\320\"\210\321p\"\210\322c\210\321p\"\210\322c)rq\210\323\311\211 \311\324%\210.\f\207" [major-mode mh-index-data mh-index-msg-checksum-map mh-index-checksum-origin-map mh-index-previous-search mh-index-sequence-search-flag mh-folder-mode error "Can't be called from folder in \"%s\"" nil get-buffer-create generate-new-buffer-name " *temp file*" ((byte-code "\301!\203\n\302!\210\301\207" [#1=#:temp-buffer buffer-name kill-buffer] 2)) mh-index-write-hashtable #[(x) "\302\303\304 \"\210\237)\207" [#2=#:--cl-var-- x nil maphash #[(y #3=#:--cl-var--) " B\211\207" [y #2#] 2]] 3] identity pp "\n" write-region 0 buffer-file-name mh-index-data-file print-level print-length outfile sequence-search-flag previous-search checksum-origin-map msg-checksum-map data #1# #4=#:temp-file] 8) ((error))] 3 (#$ . 53894)]) #@109 Write TABLE to `current-buffer'. PROC is used to serialize the values corresponding to the hash table keys. (defalias 'mh-index-write-hashtable #[(table proc) "\302\303\304\305 \"\210\237)p\"\210\306c\207" [#1=#:--cl-var-- table pp nil maphash #[(x #2=#:--cl-var--) " \304\n\"!B B\211\207" [x proc table #1# gethash] 5] "\n"] 4 (#$ . 54966)]) #@28 Read index data from file. (defalias 'mh-index-read-data #[nil "\300\301\302\217\207" [nil (byte-code "\306=\204 \307\310\"\210 \nP\311\211\211\211\211\312\313!rq\210\314\216\315!\210eb\210\316\317!\316\320!\316\320!\321p!\321p!+ \f \211.\207" [major-mode buffer-file-name mh-index-data-file t5 t4 t3 mh-folder-mode error "Can't be called from folder in \"%s\"" nil generate-new-buffer " *temp*" ((byte-code "\301!\203\n\302!\210\301\207" [#1=#:temp-buffer buffer-name kill-buffer] 2)) insert-file-contents-literally mh-index-read-hashtable #[(data) "\306\307\310\" \311\n:\203#\n@\211\312\f\313 #\210*\nA\211\202\n+\207" [table data #2=#:--cl-var-- x #3=#:v #4=#:v make-hash-table :test equal nil puthash t] 5] identity read t2 t1 infile #1# mh-index-data mh-index-msg-checksum-map mh-index-checksum-origin-map mh-index-previous-search mh-index-sequence-search-flag] 6) ((error))] 3 (#$ . 55320)]) #@103 From BUFFER read a hash table serialized as a list. PROC is used to convert the value to actual data. (defalias 'mh-index-read-hashtable #[(proc) "\306\307\310\"\311p!\312 :\203) @\211@\313 \nA!\f#\210* A\211\202\f+\207" [table #1=#:--cl-var-- pair #2=#:v #3=#:v proc make-hash-table :test equal read nil puthash] 5 (#$ . 56280)]) #@53 Check if a program to create a checksum is present. (defalias 'mh-checksum-choose #[nil "\303\301!?\205D\304\305\"\306\307!\203\306\307!C\310\211\202C\306\311!\203/\306\311!\312D\313\211\202C\306\312!\203@\306\312!C\314\211\202C\315\316!)\207" [exec-path mh-checksum-cmd mh-checksum-parser boundp append ("/sbin" "/usr/sbin") executable-find "md5sum" mh-md5sum-parser "openssl" "md5" mh-openssl-parser mh-md5-parser error "No suitable checksum program"] 3 (#$ . 56629)]) #@22 Parse md5sum output. (defalias 'mh-md5sum-parser #[nil "\304 \305 \306\211\307\310\n\311#\nb\210\312\313 \311# \2031\2031\314\315T\n\"!\315 S\"B\2024\306\211B,\207" [last-slash first-space end begin mh-line-beginning-position mh-line-end-position nil search-forward " " t search-backward "/" string-to-number buffer-substring-no-properties] 4 (#$ . 57122)]) #@23 Parse openssl output. (defalias 'mh-openssl-parser #[nil "\304 \305 \306\211\nb\210\307\310 \311#\307\312 \311#\211\205/ \205/\313\314T S\"!\314 T\n\"B,\207" [last-slash last-space end begin mh-line-beginning-position mh-line-end-position nil search-backward " " t "/" string-to-number buffer-substring-no-properties] 5 (#$ . 57498)]) (defalias 'mh-md5-parser 'mh-openssl-parser) #@349 Annotate all as yet unannotated messages in FOLDER with their MD5 hash. As a side effect msg -> checksum map is updated. Optional argument ORIGIN-MAP is a hashtable which maps each message in the index folder to the original folder and message from whence it was copied. If present the checksum -> (origin-folder, origin-index) map is updated too. (defalias 'mh-index-update-maps #[(folder &optional origin-map) "\306!\210r\307 !q\210\310 \210\311\312!r\nq\210\313\216\314 \315\316\317\320\321\f\322&\210eb\210\315\211&m\204x\323`\324 \"&\315y\210\212\325\326&\"\203ql\203Y q\210'\f\327\315O\330&\331\261\210\202q\323`\324 \"\332&!&\fq\210\333& (#\210))\315y\210\202+-m\203\201o\204\302\334\335)\"\210eb\210m\204\302* \211+@&+A&\203\273\336\337\f&\340\341\342\343 \344& \210r\fq\210\333& (#\210)\315y\210+\202\212)\345 \207" [mh-index-msg-checksum-map mh-temp-checksum-buffer #1=#:temp-buffer mh-scan-prog folder checksum clrhash get-buffer-create erase-buffer generate-new-buffer " *temp*" ((byte-code "\301!\203\n\302!\210\301\207" [#1# buffer-name kill-buffer] 2)) mh-exec-cmd-output nil "-width" "80" "-format" "%(msg)\n%{x-mhe-checksum}\n" "all" buffer-substring-no-properties mh-line-end-position string-match "^[0-9]*$" 1 "/" "\n" string-to-number mh-index-update-single-msg apply mh-xargs mh-exec-cmd "anno" "-component" "X-MHE-Checksum" "-nodate" "-text" "-inplace" mh-index-write-data msg mh-user-path origin-map mh-checksum-cmd mh-checksum-parser intermediate] 11 (#$ . 57894)]) #@415 Update various maps for one message. MSG is a index folder message, CHECKSUM its MD5 hash and ORIGIN-MAP, if non-nil, a hashtable containing which maps each message in the index folder to the folder and message that it was copied from. The function updates the hash tables `mh-index-msg-checksum-map' and `mh-index-checksum-origin-map'. This function should only be called in the appropriate index folder buffer. (defalias 'mh-index-update-single-msg #[(msg checksum origin-map) "\306 \"\203<\n\205h\306 \n\"\211@\fA\307\310\311\211\211\312\313\314\311O $%\210\306 \"\205:\315\306 \"\"+\207 \316#\210*\n\205h\306 \n\"\205h \316\306 \n\"#*\207" [checksum mh-index-checksum-origin-map origin-map msg intermediate ofolder gethash call-process "rm" nil format "%s%s/%s" 1 remhash puthash omsg mh-user-path mh-current-folder mh-index-data #1=#:v mh-index-msg-checksum-map #2=#:v #3=#:v #4=#:v] 12 (#$ . 59429)]) (provide 'mh-search)