MMCT TEAM
Server IP : 111.118.215.189  /  Your IP : 18.218.164.141
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/mh-e/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : //usr/share/emacs/24.3/lisp/mh-e/mh-search.elc
;ELC
;;; Compiled by mockbuild@buildfarm06-new.corp.cloudlinux.com on Fri Oct 11 10:11:39 2024
;;; 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 \"!BB\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\nD\"\210\202	\310=\2031\310\211A@DB\202	\311=\204=	\312=\203\211A@	\211A@EB\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\260A\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*PBA\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!
\244A\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
BA\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\nB	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\210A\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@!\203NA\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\"!BB\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)

MMCT - 2023