403Webshell
Server IP : 217.160.0.212  /  Your IP : 216.73.217.5
Web Server : Apache
System : Linux www 6.18.52-i1-ampere #1203 SMP Mon Sep 14 18:29:59 CEST 2026 aarch64
User : sws1073854427 ( 1073854427)
PHP Version : 8.4.23
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /usr/share/emacs/28.2/lisp/mh-e/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/share/emacs/28.2/lisp/mh-e/mh-search.elc
;ELC
;;; Compiled
;;; in Emacs version 28.2
;;; with all optimizations.



(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 (#$ . 171))
#@45 Function which executes the search program.
(defvar mh-search-function nil (#$ . 252))
#@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 (#$ . 346))
#@43 Function used to construct search regexp.
(defvar mh-search-regexp-builder nil (#$ . 556))
#@69 Folder that contains the folders resulting from the index searches.
(defvar mh-index-folder "+mhe-index" (#$ . 653))
#@64 Subfolder for `mh-index-folder' where flists output is placed.
(defvar mh-flists-results-folder "sequence" (#$ . 776))
(defvar mh-flists-called-flag nil)
#@4982 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.

(fn FOLDER SEARCH-REGEXP &optional REDO-SEARCH-FLAG WINDOW-CONFIG)
(defalias 'mh-search #[1026 "\3062N\203!\203!	\203!\n\204!\307\310\311\"\210)\312\306\313\"\2109\2030\314\"\210\312\306\313\"\210\315 \210\316C\206:\f\317\320
\321	!#C\203k\203k\322p!\323!\210\212\324\313\325#\210)\324\313\326\327\330%\210\240\266\202t\211\331\242	\"\240\210\317\3323\n\333\313O#\334\335\336\"\334\335\336\"\337\3404\"\2105\"\210\337\3414\"\210eb\210\313\2116 \262\203\330\342=\204\322\343@\"\204\302@\344\334\335\336\"#\266A@\343@\"\344\307#\266\313\262\202\236\266\345\346\347	$\"\210\350\242\313D#\210eb\210\313y\210\351 \210\352\313!\210\353 \203\354\3077\"\210\203\204\203\n4E\n\204&\355 \210\337\356\357\3604!!\316C\345\346\361\"\"\210\211\242\262\316C\345\346\362\"\"\210\211\242\262$\266\2070\207" [mh-index-data mh-index-sequence-search-flag mh-flists-called-flag mh-index-previous-search mh-previous-window-config mh-index-folder --cl-block-mh-search-- t apply mh-index-sequenced-messages throw 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 make-closure #[514 "\303\304\"@\305\306C\307\310\311\"\"\210\211\242\237\262\312\"\313\314\315\316\301\242&\210\2038\317\306\320\321\322\323\304\324\325\"&\210\211\306:\203]@\262\300\211\242T\240\210\300\242\302\326	B#\266A\262\202:\266\306\207" [V0 V1 V2 mh-translate-range "cur" sort nil maphash make-closure #[514 "\300\300\242B\240\207" [V0] 5 "\n\n(fn MSG --CL-VAR--)"] < mh-exec-cmd "refile" "-src" "-link" mh-exec-cmd-quiet "mark" "-add" "-zero" "-sequence" format "%s" puthash] 15 "\n\n(fn FOLDER MSGS)"] 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 #[514 "\300\211\242\301!\\\240\207" [V0 hash-table-count] 6 "\n\n(fn --CL-VAR-- MSG-HASH)"] #[514 "\301!\302V\205
\300\211\242T\240\207" [V0 hash-table-count 0] 4 "\n\n(fn --CL-VAR-- MSG-HASH)"] mh-user-path mh-searcher mh-search-function mh-search-next-result-function mh-current-folder] 20 (#$ . 938) (byte-code "\305 \210\306\205	\205	A@!\204\307\310!\210\203\n\206/\203(	@\206/\311\312\313\314\315\316%\203:	AA@\206H\206H\317\320\321\322\323\f!!\"!\211\205Q	AA@?\205[\205[\324 F\207" [current-prefix-arg mh-index-previous-search mh-index-sequence-search-flag mh-search-regexp-builder mh-searcher mh-find-path mh-search-choose error "No search program found" mh-prompt-for-folder "Search" "+" nil "all" t read-string format "%s regexp: " upcase-initials symbol-name current-window-configuration] 7)])
#@198 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.

(fn FOLDER WINDOW-CONFIG)
(defalias 'mh-search-folder #[514 "\300\301!\210\302 \303U\204\304\305!\204\306 \210\202\307\310!\210\311\312\313$\210\307\314\315\316!\"\207" [switch-to-buffer-other-window "search-pattern" buffer-size 0 y-or-n-p "Reuse pattern? " mh-make-pick-template message "" mh-make-local-vars mh-current-folder 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"] 7 (#$ . 8812) (byte-code "\301\302\303\211\304%\305 D\207" [mh-current-folder mh-prompt-for-folder "Search" nil t current-window-configuration] 6)])
#@67 Initialize the current buffer with a template for a pick pattern.
(defalias 'mh-make-pick-template #[0 "\301\302 \210)\303\304\305\306\307\310\261\210\311 \210eb\210\312\211\313W\203B\314\315``T\316#\210\315\317 \320Z\317 S\321#\210\315`\317 S\322#\210\314y\266\211T\262\202\210\315``T\323#\210\315`\317 S\324#\210db\207" [inhibit-read-only t erase-buffer "From: \n" "To: \n" "Cc: \n" "Date: \n" "Subject: \n" "---------\n" mh-search-mode 0 5 nil add-text-properties (front-sticky t) mh-line-end-position 2 (rear-nonsticky t) (read-only t) (front-sticky t) (read-only t)] 6 (#$ . 9637)])
#@395 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.

(fn FOLDERS)
(defalias 'mh-index-new-messages #[257 "\301\"\207" [mh-unseen-seq mh-index-sequenced-messages] 4 (#$ . 10239) (byte-code "\203\f\302\303\304!!\202
	C\207" [current-prefix-arg mh-new-messages-folders split-string read-string "Search folder(s) (default all): "] 3)])
#@232 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.

(fn FOLDERS)
(defalias 'mh-index-ticked-messages #[257 "\301\"\207" [mh-tick-seq mh-index-sequenced-messages] 4 (#$ . 10911) (byte-code "\203\f\302\303\304!!\202
	C\207" [current-prefix-arg mh-ticked-messages-folders split-string read-string "Search folder(s) (default all): "] 3)])
#@271 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.

(fn FOLDERS SEQUENCE)
(defalias 'mh-index-sequenced-messages #[514 "\211\204\262\211\306\307\310\311\312\313\314$\211\232\203/\2021\315 \312\211\316\317!!\203Kq\210\fE \306\262\202X\320!\203X\321\312\322#\210\323\324$\262\306!\fE \325 \210\211;\205x\326\327\".\207" [mh-unseen-seq mh-flists-search-folders mh-flists-sequence mh-flists-called-flag mh-searcher mh-search-function 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-search-next-result-function mh-user-path mh-mairix-folder mh-search-regexp-builder mh-index-folder mh-flists-results-folder mh-current-folder mh-previous-window-config mh-index-previous-search mh-index-sequence-search-flag] 11 (#$ . 11424) (byte-code "\203\f\302\303\304!!\202
	\305\306\307\"D\207" [current-prefix-arg mh-new-messages-folders split-string read-string "Search folder(s) (default all): " mh-read-seq-default "Search" nil] 4)])
#@254 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.

(fn &rest IGNORED)
(defalias 'mh-flists-execute #[128 "\306!q\210\307 \210\310\311!\204\312\313!\210\314\315\316\"r\211q\210\317\320\"\216\321	!\322\323\324\n\"\325\326\267\2028\327\f!\202[\330\202[<\205[\331\330:\203Y@\262\211\325\327!PP\262A\262\202@\266\202
\203c\332\202d\330\333\334\323\335\n\"\336\n\337\340\261
\266\341ed\311\331\342!%*\207" [mh-temp-index-buffer mh-flists-sequence mh-progs mh-flists-search-folders mh-inbox mh-recursive-folders-flag get-buffer-create erase-buffer executable-find "sh" error "Didn't find sh" generate-new-buffer " *temp*" t make-closure #[0 "\301\300!\205	\302\300!\207" [V0 buffer-name kill-buffer] 2] symbol-name "for folder in `" expand-file-name "flists" " " #s(hash-table size 2 test eq rehash-size 1.5 rehash-threshold 0.8125 purecopy t data (t 46 nil 52)) mh-quote-for-shell "" nil " -recurse" " -sequence " " -noshowzero -fast` ; do\n" "mhpath" " \"+$folder\" " "\n" "done\n" call-process-region get-buffer] 16 (#$ . 12776)])
#@149 Jump to the next folder marker.

With non-nil optional argument BACKWARD-FLAG, jump to the previous
group of results.

(fn &optional BACKWARD-FLAG)
(defalias 'mh-index-next-folder #[256 "\204\301\302!\207`\203\303\202\304y\210\203 \305\306e\307#\202%\310\306d\307#\203+\311 \207\2035db\210\2028eb\210\203D\305\306e\307#\202I\310\306d\307#\203O\311 \207\211b\207" [mh-index-data message "Only applicable in an MH-E index search buffer" 0 1 re-search-backward "^\\+" t re-search-forward beginning-of-line] 6 (#$ . 14021) "P"])
#@37 Jump to the previous folder marker.
(defalias 'mh-index-previous-folder #[0 "\300\301!\207" [mh-index-next-folder t] 2 (#$ . 14571) nil])
#@66 Visit original folder from where the message at point was found.
(defalias 'mh-index-visit-folder #[0 "\204\303\304!\210\305C\305\212n\203(l\203(\3061\307y0\210\202 \210\310\311!\262\202A\312 f\313=\203<\314\312 \315 \"\240\210\202A\310\311!\262)\242\204R\316\211	\"\n\"@\240\210\317\242!\203c\320\321\322\242\"!\205}\323\242\305C\324\325\326#\316\242\"\"\210\211\242\237\262\"\207" [mh-index-data mh-index-msg-checksum-map mh-index-checksum-origin-map error "Not in an index folder" nil (error) -1 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 make-closure #[514 "\302\300\242\"\205\301\301\242B\240\207" [V0 V1 mh-msg-exists-p] 5 "\n\n(fn X --CL-VAR--)"]] 10 (#$ . 14715) nil])
#@22 Menu for MH-E Search
(defvar mh-pick-menu nil (#$ . 15578))
(byte-code "\301\302\303\304$\210\305\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\").")) (#$ . 16129))
(put 'mh-search-mode 'mode-class 'special)
(defvar mh-search-mode-hook nil)
(byte-code "\300\301N\204\f\302\300\301\303#\210\304\305!\204\302\305\306\307#\210\300\207" [mh-search-mode-hook variable-documentation put "Hook run after 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 mh-search-mode] 4)
(defvar mh-search-mode-map (make-sparse-keymap))
(byte-code "\301\302N\204\303\301\302\304\305!#\210\306\307!\204\303\307\310\311#\210\312\313 !\210\307\302N\204-\303\307\302\304\314!#\210\306\300!\204B\303\300\310\311#\210\315\316\300\317\"\210!\210\300\302N\204P\303\300\302\304\320!#\210\303\311\321\317#\207" [mh-search-mode-abbrev-table mh-search-mode-map variable-documentation put purecopy "Keymap for `mh-search-mode'." boundp mh-search-mode-syntax-table definition-name mh-search-mode (lambda (#1=#:def-tmp-var) (defvar mh-search-mode-syntax-table #1#)) make-syntax-table "Syntax table for `mh-search-mode'." (lambda (#1#) (defvar mh-search-mode-abbrev-table #1#)) define-abbrev-table nil "Abbrev table for `mh-search-mode'." derived-mode-parent] 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 #[0 "\306\300!\210\307\310 \210\311\312\313!\210\314\f!\210
\315!\210)\316\317!\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 mh-set-help run-mode-hooks mh-search-mode-hook local-abbrev-table mh-search-mode-help-messages] 2 (#$ . 18066) nil])
#@148 Find messages using `mh-search-program'.
If optional argument SEARCHER is present, use it instead of
`mh-search-program'.

(fn &optional SEARCHER)
(defalias 'mh-index-do-search #[256 "\303!\204\n\304\305!\210\306 !\211\203\307	\310\n$\207\304\311!\207" [mh-search-regexp-builder 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"] 8 (#$ . 19199) nil])
#@90 Find messages using "pick".

Uses the pick method described in `mh-pick-execute-search'.
(defalias 'mh-pick-do-search #[0 "\300\301!\207" [mh-index-do-search pick] 2 (#$ . 19666) 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 #[0 "\212\300\211\211\211eb\210m\204R\301\302\303 \304#\203\304\262\202L\305 \210`\262\203)`\2021\301\306\303 \304#\210`\262?\205@\307\310S\"\227!\311\310\303 \"!BB\262\300y\210\202\266\204)\207" [nil search-forward "--------" mh-line-end-position t beginning-of-line ":" intern buffer-substring-no-properties mh-index-parse-search-regexp] 9 (#$ . 19858)])
#@193 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.

(fn INPUT-STRING)
(defalias 'mh-index-parse-search-regexp #[257 "\300\301\302\303\"r\211q\210\304\305\"\216c\210\306\307\310\"\210\306\311\312\"\210\306\313\312\"\210\306\314\312\"\210\306\315\316\"\210\306\317\316\"\210\306\320\316\"\210\306\321\322\"\210\306\323\322\"\210\306\324\322\"\210\306\325\322\"\210\306\326\327\"\210\306\330\327\"\210\306\331\332\"\210\306\333\332\"\210\334\335ed{\"\262*\210\336\337!!\300\211\211\211\203C\211@\211\340\267\202\347\341B\262\202<\342B\262\202<\343B\262\202<\344B\262\202<\345\346\"!\211@\262\211A@\262\210@\342=\203\304A\262\342\211A\262\242DB\262@\344=\203<A\262\211A\262\242\262\344\211A\262\242EB\262\202<@\342=\203A\262\342DB\262@\344=\203<A\262\211A\262\242\262\344\211A\262\242EB\262\202<@\344=\2037A\262\344\211A\262\242EB\262\202<\211B\262A\266\202\202o\210\211A\262\242\204R\203X\347\350\"\210\207" [nil generate-new-buffer " *temp*" t make-closure #[0 "\301\300!\205	\302\300!\207" [V0 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 #s(hash-table size 5 test equal rehash-size 1.5 rehash-threshold 0.8125 purecopy t data ("(" 123 "not" 131 "or" 139 "and" 147 ")" 155)) paren not or and cl-values-list mh-index-evaluate error "Invalid regexp: %s"] 12 (#$ . 20494)])
#@57 Add implicit operators in the list TOKENS.

(fn TOKENS)
(defalias 'mh-index-add-implicit-ops #[257 "\300\211\211\203S\211A\262\242\262\211\301\232\204!\211\302\232\204!\211\303\232\203,\300\262\211B\262\202\203<\302B\211\262\203<\300\262\211B\262\211\304\232\204\211\305\232\204\306\262\202\237\207" [nil ")" "and" "or" "(" "not" t] 6 (#$ . 22178)])
#@103 Read expression till starting paren based on OP-STACK and OPERAND-STACK.

(fn OP-STACK OPERAND-STACK)
(defalias 'mh-index-evaluate #[514 "\3002[\301\211\203U\211A\262\242\262\302\267\2021\303\300D\"\210\202\304\211A\262\242DB\262\202\305=\204=\306=\203\211A\262\242\262\211A\262\242EB\262\202\307\310!\266\2020\207" [--cl-block-mh-index-evaluate-- nil #s(hash-table size 2 test eq rehash-size 1.5 rehash-threshold 0.8125 purecopy t data (paren 24 not 34)) throw not and or error "Ran out of tokens"] 8 (#$ . 22564)])
#@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)) (#$ . 23121))
#@353 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'.

(fn &optional SEARCHER)
(defalias 'mh-search-choose #[256 "\3062L\211\203\307\"C\202	\203\307	\"C\202\211\203H\211A\262\242\211A@J\211\203C@\3108\3118\3128\313\306\n\"\210\266\202\314\2620\207" [mh-search-choices mh-search-program mh-searcher mh-search-function mh-search-next-result-function mh-search-regexp-builder --cl-block-nil-- assoc 2 3 4 throw nil] 7 (#$ . 23714)])
(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)
#@1254 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.

(fn FOLDER-PATH SEARCH-REGEXP)
(defalias 'mh-swish++-execute-search #[514 "\305!q\210\306 \210	\204\307\310!\210\311	\312\313\312\314\315\316\317\n#&\210eb\210\211GS\312O\211\320\232\2034\2028\316\321\"\262\211\207" [mh-temp-index-buffer mh-swish++-binary mh-user-path mh-swish++-directory mh-swish-folder 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/"] 13 (#$ . 24634)])
(defalias 'mh-swish++-next-result 'mh-swish-next-result)
#@93 Generate query for swish++.
REGEXP-LIST is an alist of fields and values.

(fn REGEXP-LIST)
(defalias 'mh-swish++-regexp-builder #[257 "\300\211\203K\211@\211A\203D\301@\203\302\202\300@\203%\303@!\202&\300@\203/\304\2020\300\305A!@\203?\306\202@\300\260\262A\266\202\202\210\211\307\310O\207" ["" " and " "(" symbol-name " = " mh-swish++-print-regexp ")" 4 nil] 11 (#$ . 26413)])
#@59 Return infix expression corresponding to EXPR.

(fn EXPR)
(defalias 'mh-swish++-print-regexp #[257 "\211:\204\n\300\301\"\207\211@\302=\203\300\303\304A@!\"\207\300\305\304A@!\306@!\304AA@!$\207" [format "%s" not "(not %s)" mh-swish++-print-regexp "(%s %s %s)" symbol-name] 7 (#$ . 26827)])
(defvar mh-swish-binary (executable-find "swish-e"))
(defvar mh-swish-directory ".swish")
#@1547 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.

(fn FOLDER-PATH SEARCH-REGEXP)
(defalias 'mh-swish-execute-search #[514 "\305!q\210\306 \210	\204\307\310!\210\311	\312\313\312\314\315\316\317\n#&\210eb\210\211GS\312O\211\320\232\2034\2028\316\321\"\262\211\207" [mh-temp-index-buffer mh-swish-binary mh-user-path mh-swish-directory mh-swish-folder get-buffer-create erase-buffer error "Set `mh-swish-binary' appropriately" call-process nil (t nil) "-w" "-f" format "%s%s/index" "/" "%s/"] 14 (#$ . 27224)])
#@40 Get the next result from swish output.
(defalias 'mh-swish-next-result #[0 "\3022\255m\204`f\303=\203\304\302\305\"\210`f\306=\203 \304\302\307\"\210\310\311\312 \313#\310\311\312 \313#\2034\211\2049\304\302\307\"\210\211S\262\314\315\"!\204K\304\302\307\"\210\316\317\313#\204X\304\302\307\"\210\315`T\"\320\"\204i\304\302\307\"\210\320	\"\203\206\321\225GSW\203\206\322\323\321\225GSO\"\202\212\304\302\307\"\262\315`T\"\3241\234\325!0\202\236\210\305\211\206\246\304\302\307\"\266\202\305E\266\2020\305y\210\207" [mh-swish-folder mh-user-path --cl-block-nil-- 46 throw nil 35 error search-forward " " mh-line-end-position t file-exists-p buffer-substring-no-properties search-backward "/" string-match 0 format "+%s" (error) string-to-number] 8 (#$ . 29218)])
(defvar mh-mairix-binary (executable-find "mairix"))
(defvar mh-mairix-directory ".mairix")
(defvar mh-mairix-folder nil)
#@768 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.

(fn FOLDER-PATH SEARCH-REGEXP-LIST)
(defalias 'mh-mairix-execute-search #[514 "\305!q\210\306 \210	\204\307\310!\210\311\312	\313\314\313\315\316\317\320\n#	&	\210eb\210\211GS\313O\211\321\232\2035\2029\317\322\"\262\211\207" [mh-temp-index-buffer mh-mairix-binary mh-user-path mh-mairix-directory mh-mairix-folder get-buffer-create erase-buffer error "Set `mh-mairix-binary' appropriately" apply call-process nil (t nil) "-r" "-f" format "%s%s/config" "/" "%s/"] 14 (#$ . 30142)])
#@40 Return next result from mairix output.
(defalias 'mh-mairix-next-result #[0 "\3022{m\204n\203l\203\303\302\304\"\210\304f\305=\204!\303\302\306\"\210`\304\211\307 \262\310\311#\2045\303\302\306\"\210\312\224b\210`\232\204D\303\302\306\"\210b\210\313\314\311#\204T\303\302\306\"\210`T\262b\210\310	\311#\204h\303\302\306\"\210\315\316\317`S\"\"\320\317\"!\304E\266\2030\304y\210\207" [mh-mairix-folder mh-user-path --cl-block-nil-- throw nil 47 error mh-line-end-position search-forward t 0 search-backward "/" format "+%s" buffer-substring-no-properties string-to-number] 8 (#$ . 31373)])
#@92 Generate query for mairix.
REGEXP-LIST is an alist of fields and values.

(fn REGEXP-LIST)
(defalias 'mh-mairix-regexp-builder #[257 "\300\211\203\374\211@\211A\203\365\211@\301=\203\302\202\235\211@\303=\203#\304\202\235\211@\305=\203.\306\202\235\211@\307=\2039\310\202\235\211@\311=\203D\312\202\235\211@\313=\203O\314\202\235\211@\315=\203Z\316\202\235\211@\317=\203e\320\202\235\211@\321=\203p\322\202\235\211@\323=\203{\324\202\235\211@\325=\203\206\326\202\235\211@\327=\203\221\330\202\235\211@\331=\203\234\332\202\235\333\334A!A\333\211\203\351\211@\211A\333\211\203\326\211@\335:\204\277\333\202\300\336:\204\311\202\314A@R\262A\266\202\202\256\210\337\340\300OQ\262\266A\266\202\202\244\210\211\340\300O\266\202PB\262A\266\202\202\210\207" [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] 17 (#$ . 31992)])
#@49 Convert EXPR to sum of product form.

(fn EXPR)
(defalias 'mh-mairix-convert-to-sop* #[257 "\211:\204\300\301DD\207\211@\300=\2038\300\302\303A\"\304\211:\2032@\262\305A!\244\262A\262\202\211\237\266\203B\207\211@\301=\203\223\302\303A\"\304\211\211A\262\242\262\203\221\211A\262\242\262\304A\211\203\206\211@A\211\203~\211@\301\306AA\"BB\262A\266\202\202e\210A\266\202\202]\210\300B\262\262\202N\207\211A@:\204\240\300\301DD\207\211A@@\307=\203\261\303A@A@!\207\211A@@\301=\203\306\303\300\302\310A@A\"B!\207\211A@@\300=\203\333\303\301\302\311A@A\"B!\207\312\313\"\207" [or and mapcar mh-mairix-convert-to-sop* nil reverse append not #[257 "\300D\207" [not] 3 "\n\n(fn X)"] #[257 "\300D\207" [not] 3 "\n\n(fn X)"] error "Unreachable: %s"] 13 (#$ . 33074)])
(defvar mh-namazu-binary (executable-find "namazu"))
(defvar mh-namazu-directory ".namazu")
(defvar mh-namazu-folder nil)
#@906 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.

(fn FOLDER-PATH SEARCH-REGEXP)
(defalias 'mh-namazu-execute-search #[514 "\305\306	#\307!\204\310\311\"\210\312\n!\204\310\313!\210\314!q\210\315 \210\316\n\317\320\317\321&\210eb\210\211GS\317O\211\322\232\203B\202F\305\323\"\262\211\207" [mh-user-path mh-namazu-directory mh-namazu-binary mh-temp-index-buffer mh-namazu-folder 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/"] 11 (#$ . 34016)])
#@41 Get the next result from namazu output.
(defalias 'mh-namazu-next-result #[0 "\3022km\203
\303\302\304\"\210\305`\306 \"\307\"\310=\204 \303\302\311\"\210\312!\204+\303\302\311\"\210\307	\"\210\211\310\225\304O\313\314\"\211\204B\303\302\311\"\210\315\316\310O\"\3171X\320T\304O!0\202Z\210\304\211\206b\303\302\311\"\262\304E\266\202\2620\304y\210\207" [mh-namazu-folder mh-user-path --cl-block-nil-- throw nil buffer-substring-no-properties mh-line-end-position string-match 0 error file-exists-p mh-search-from-end 47 format "+%s" (error) string-to-number] 8 (#$ . 35460)])
(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) (#$ . 36092))
#@314 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.

(fn FOLDER-PATH SEARCH-REGEXP)
(defalias 'mh-pick-execute-search #[514 "\303!q\210\304 \210\305	G\306O!\211\306:\203<@\262\307P\262\211\310\261\210\311\312\313\314\n\"\306\315\306\316&\210A\262\202\266eb\207" [mh-temp-index-buffer mh-user-path mh-progs get-buffer-create erase-buffer mh-folder-list nil "+" "\n" apply call-process expand-file-name "pick" (t nil) "-list"] 14 (#$ . 36238)])
#@37 Return the next pick search result.
(defalias 'mh-pick-next-result #[0 "\3012<m\203
\302\301\303\"\210\304\305\306 \307#\203\"\310\311 \306 \"\302\301\312\"\210\304\313\306 \307#\2040\302\301\312\"\210\314\310\311 \306 \"!\303E0\303y\210\207" [mh-index-pick-folder --cl-block-nil-- throw 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 (#$ . 36935)])
#@71 Generate pick search expression from PATTERN-LIST.

(fn PATTERN-LIST)
(defalias 'mh-pick-regexp-builder #[257 "\301\211\203a\211@\211A\203Z\302\303\304\305\306!\203%@\203%\307\310A\"\202'A@\203T\305\306!\203;\307\311@\"\202U@\235\203K\307\312@\"\202U\307\313@\"\202U\314\"\315$\262A\266\202\202\210\211A\207" [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")] 12 (#$ . 37406)])
#@120 Construct pick compatible expression corresponding to EXPR.
COMPONENT is the component to search.

(fn EXPR COMPONENT)
(defalias 'mh-pick-construct-regexp #[514 ":\204	\211D\207@\300=\203&\301\302\303A@\"\304\303AA@\"\305$B\207@\306=\203C\301\302\303A@\"\307\303AA@\"\310$B\207@\311=\203X\301\312\302\303A@\"\313\"BB\207\314\315@\"\207" [and "-lbrace" append mh-pick-construct-regexp ("-and") ("-rbrace") or ("-or") ("-rbrace") not "-not" ("-rbrace") error "Unknown operator %s seen"] 9 (#$ . 37941)])
(defvar mh-grep-binary (executable-find "grep"))
#@356 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.

(fn FOLDER-PATH SEARCH-REGEXP)
(defalias 'mh-grep-execute-search #[514 "\302!q\210\303 \210\304	\305\306\305\307\310	&\210eb\207" [mh-temp-index-buffer mh-grep-binary get-buffer-create erase-buffer call-process nil (t nil) "-i" "-r"] 11 (#$ . 38523)])
#@183 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 #[0 "\3012sm\203
\302\301\303\"\210\304 \305 \303\211b\210\306\307#\204#\302\301\310\"\210`\262\306\311\307#\2043\302\301\310\"\210\312`\"\313u\210`\262\314\315\307#\204J\302\301\310\"\210\316\317\312`\"\"\3201`\321\312`T\"!0\202b\210\303\211\206j\302\301\310\"\262E\262\266\2040\303y\210\207" [mh-user-path --cl-block-nil-- throw nil mh-line-end-position mh-line-beginning-position search-forward t error ":" buffer-substring-no-properties -1 search-backward "/" format "+%s" (error) string-to-number] 10 (#$ . 39111)])
#@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 #[0 "\212eb\210\301\302\303\"\304\305\306\"\"\210\307C\304\305\310#\"\210\211\242\237\262\262)\207" [mh-index-msg-checksum-map make-hash-table :test equal maphash make-closure #[514 "\303\211	\"\n\"@\300\304\303\"B#\207" [V0 mh-index-msg-checksum-map mh-index-checksum-origin-map gethash puthash] 10 "\n\n(fn MSG --CL-VAR--)"] nil #[514 "\301\302\300\"\237B\301\242B\240\207" [V0 V1 gethash] 7 "\n\n(fn X --CL-VAR--)"]] 7 (#$ . 39873)])
#@57 Annotate the search results with original folder names.
(defalias 'mh-index-insert-folder-headers #[0 "\303\304!\305 \304\211\211eb\210m\204>\306\211\303\304!	\"\n\"@\262\2038\232\2048\211\203/\307\2020\310\307\261\210\262\304y\210\202
\203J\311 \210\312\313\"\210\314!\210)\266\315 \207" [buffer-read-only mh-index-msg-checksum-map mh-index-checksum-origin-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] 9 (#$ . 40532)])
#@28 Delete the folder headers.
(defalias 'mh-index-delete-folder-headers #[0 "\301\302!\303 \302\204m\204\302y\210\301\302!\262\202eb\210m\204A\304\302f\305\"\2041\304\302f\306\"\203;`\302y\210`|\210\202\302y\210\202\203K\307\310\211#\210\311!)\207" [buffer-read-only mh-get-msg-num nil buffer-modified-p char-equal 43 10 mh-goto-msg t set-buffer-modified-p] 6 (#$ . 41070)])
(mh-require 'which-func nil t)
#@69 Create alist of folder names and positions in index folder buffers.
(defalias 'mh-index-create-imenu-index #[0 "\212\302\300!\203	\303\304eb\210\305\306\304\303#\203)\212\307 \210\310`\311 \"\312 BB\262)\202
\211\237\211\262)\207" [which-func-mode imenu--index-alist boundp t nil re-search-forward "^\\+" beginning-of-line buffer-substring-no-properties mh-line-end-position point-marker] 5 (#$ . 41499)])
#@60 Non-nil means that this folder was generated by searching.
(defalias 'mh-search-p #[0 "\207" [mh-index-data] 1 (#$ . 41919)])
#@307 Perform the outstanding operations on the actual messages.
The copies in the searched folder are then deleted, refiled,
blocklisted and allowlisted to get the desired result. Before
processing the messages we make sure that the message is
identical to the one that the user has marked in the index
buffer.
(defalias 'mh-index-execute-commands #[0 "\212\305C\306\307\310\311\"\312\313	\305\211:\203'@\262\314A!\244\262A\262\202\211\237\266\203\n\f$\306\"\"\210\211\242)\262)\207" [mh-speed-flists-inhibit-flag mh-refile-list mh-delete-list mh-blocklist mh-allowlist nil t maphash make-closure #[514 "\300\300\242B\240\210\305!\204\306\307\310\311!$\207rq\210	\n\f\312\312\211\313\314&\216\315 )\266\204)\207" [V0 mh-refile-list mh-delete-list mh-blocklist mh-allowlist get-buffer apply mh-exec-cmd "rmm" mh-coalesce-msg-list nil make-closure #[0 "\306\307\310\300\"\301\"\302\311\211:\203&@\262\300>\204B\262A\262\202\211\237\266\203
\303\311\211:\203J@\262\300>\204CB\262A\262\202/\211\237\266\203\304\311\211:\203n@\262\300>\204gB\262A\262\202S\211\237\266\203\312\313 !\210\313 \205\200\314 \207" [V0 V1 V2 V3 V4 mh-refile-list mapcar make-closure #[257 "\211@A\301\211:\203!@\262\300>\204B\262A\262\202\211\237\266\203B\207" [V0 nil] 7 "\n\n(fn X)"] nil mh-set-folder-modified-p mh-outstanding-commands-p mh-notate-deleted-and-refiled mh-delete-list mh-blocklist mh-allowlist] 5] mh-execute-commands] 14 "\n\n(fn FOLDER MSGS)"] mh-index-matching-source-msgs append reverse] 10 (#$ . 42053)])
#@370 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.

(fn STRING)
(defalias 'mh-index-generate-pretty-name #[257 "\303\304\305\"r\211q\210\306\307\"\216;\203c\210\2026@\203!@c\210A\211\2035\211@\310\261\210A\266\202\202#\210\311\312\313\"\262\311\314\313\"\262\311\315\313\"\262\316ed\317\320\305%\210\316ed\321\320\305%\210\316ed\322\320\305%\210eb\210m\204u\323f\324>\203u\325\326!\210\202cdb\210o\204\213`Sf\327>\203\213\325\330!\210\202x\316ed\320\331\305%\210\316ed\332\331\305%\210\316ed\333\331\305%\210\316ed\334\331\305%\210\316ed\335\336\305%\210\337\340 \341\"\342=\203\306\343\344	\n#\202\323\211	\232\203\322\211\345P\202\323\211\262*\207" [mh-searcher mh-flists-results-folder mh-flists-sequence generate-new-buffer " *temp*" t make-closure #[0 "\301\300!\205	\302\300!\207" [V0 buffer-name kill-buffer] 2] "_" mh-replace-string "-lbrace" " " "-rbrace" "-search" subst-char-in-region 40 32 41 45 nil (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"] 8 (#$ . 43654)])
#@38 Check if FOLDER exists.

(fn FOLDER)
(defalias 'mh-folder-exists-p #[257 "\300!\205-\212\301\302\303\"r\211q\210\304\305\"\216\306\307\310\311\312%\210eb\210\313\314\315\316\310O\"!*\262)\207" [mh-folder-name-p generate-new-buffer " *temp*" t make-closure #[0 "\301\300!\205	\302\300!\207" [V0 buffer-name kill-buffer] 2] mh-exec-cmd-output "folder" nil "-fast" "-nocreate" looking-at format "+?%s" 1] 8 (#$ . 45060)])
#@49 Check if MSG exists in FOLDER.

(fn MSG FOLDER)
(defalias 'mh-msg-exists-p #[514 "\301\302\303\304\305O$!\207" [mh-user-path file-exists-p format "%s%s/%s" 1 nil] 9 (#$ . 45493)])
#@424 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.

(fn NAME SEARCH-REGEXP)
(defalias 'mh-index-new-folder #[514 "\300!\204\n\301\302!\210\303\304\211\211\211\303=\203\202!\305\306#\262\307!\2032\310!\232\203<\262\304\211\262\202=\311\203JT\262\304\262\202\266\204\312!\203V\313!\210\212\314\304\315#\210)\314\304\316\317\320%\210\321!\210\322\323!\203t\324!\210\207" [mh-folder-name-p error "The argument should be a valid MH folder name" 1 nil format "%s-%s" mh-folder-exists-p mh-index-folder-search-regexp t 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] 11 (#$ . 45684)])
#@152 If FOLDER was created by an index search, return the search regexp.
Return nil if FOLDER doesn't exist or the .mhe_index file is
garbled.

(fn FOLDER)
(defalias 'mh-index-folder-search-regexp #[257 "\3021.\303\304\305\"r\211q\210\306\307\"\216\310\311\312\313\314O	$!\210eb\210\315\316!\210\317p!A@*\2620\207\210\314\207" [mh-user-path mh-index-data-file (error) generate-new-buffer " *temp*" t make-closure #[0 "\301\300!\205	\302\300!\207" [V0 buffer-name kill-buffer] 2] insert-file-contents format "%s%s/%s" 1 nil forward-list 3 read] 9 (#$ . 46776)])
#@61 Mirror sequences present in source folders in index folder.
(defalias 'mh-index-create-sequences #[0 "\304\305\306\"\307\310\311\312\"\"\210\313	\314\"\211\203q\211@\315\n\"\315\"\211@A\31613\315\315\"\"0\2025\210\307\307:\203h@\262\317\n\"\203X\317\n\"\211AB\241\266\202a\211D	B\262	A\262\2026\266A\266\202\202\210\211\307:\203\230@\262\320\321\322	\323\324@!\325\326\327	A\"&\210A\262\202t\266\307\207" [mh-index-data mh-current-folder mh-index-msg-checksum-map mh-index-checksum-origin-map make-hash-table :test equal nil maphash make-closure #[514 "\300\301\302\303\304\"!#\207" [V0 puthash mh-create-sequence-map mh-read-folder-sequences nil] 9 "\n\n(fn FOLDER --CL-VAR--)"] mh-translate-range "all" gethash (error) assoc apply mh-exec-cmd "mark" "-sequence" symbol-name "-add" mapcar #[257 "\300\301\"\207" [format "%s"] 4 "\n\n(fn X)"]] 14 (#$ . 47344)])
#@202 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.

(fn SEQ-LIST)
(defalias 'mh-create-sequence-map #[257 "\300 \301:\203H@\262\211@\302 >\204A\303@!\203A\211A\301:\203?@\262@\304\305\n\"B#\266A\262\202\266A\262\202\207" [make-hash-table nil mh-unpropagated-sequences mh-valid-seq-p puthash gethash] 13 (#$ . 48267)])
#@186 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.

(fn SEQ MSGS)
(defalias 'mh-index-add-to-sequence #[514 "\212\301 >?\205#\302!\205#\303C\304\305\306\307#\310!\"\210\211\242)\262)\207" [mh-speed-flists-inhibit-flag mh-unpropagated-sequences mh-valid-seq-p nil t maphash make-closure #[514 "\301\301\242B\240\210\302\303\304\305\306\307\310\311\300!\312\313\314\f!\"&	\210\315!\205+rq\210\316\300\")\207" [V0 V1 apply mh-exec-cmd-quiet nil "mark" "-add" "-nozero" "-sequence" symbol-name mapcar #[257 "\300\301\"\207" [format "%s"] 4 "\n\n(fn X)"] mh-coalesce-msg-list get-buffer mh-put-msg-in-seq] 15 "\n\n(fn FOLDER MSGS)"] mh-index-matching-source-msgs] 8 (#$ . 48757)])
#@174 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.

(fn SEQ MSGS)
(defalias 'mh-index-delete-from-sequence #[514 "\212\301 >?\205#\302!\205#\303C\304\305\306\307#\310!\"\210\211\242)\262)\207" [mh-speed-flists-inhibit-flag mh-unpropagated-sequences mh-valid-seq-p nil t maphash make-closure #[514 "\301\301\242B\240\210\302\303\304\305\306\307\310\311\300!\312\313\314\f!\"&	\210\315!\205,rq\210\316\300\317#)\207" [V0 V1 apply mh-exec-cmd-quiet nil "mark" "-del" "-nozero" "-sequence" symbol-name mapcar #[257 "\300\301\"\207" [format "%s"] 4 "\n\n(fn X)"] mh-coalesce-msg-list get-buffer mh-delete-msg-from-seq t] 15 "\n\n(fn FOLDER MSGS)"] mh-index-matching-source-msgs] 8 (#$ . 49576)])
#@42 List of sequences that aren't preserved.
(defvar mh-unpropagated-sequences '(cur range subject search) (#$ . 50397))
#@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 #[0 "\203	B\207	\207" [mh-previous-seq mh-unpropagated-sequences] 2 (#$ . 50521)])
#@282 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'.

(fn MSGS &optional DELETE-FROM-INDEX-DATA)
(defalias 'mh-index-matching-source-msgs #[513 "\303\304\305\"\211\203T\211@\306\"\306	\"\203K\211@\203K\211A\203K\307A@#\203K\211A@\310\306\"B	#\266\203K\311A\306@\n\"\"\210\266A\266\202\202\210\207" [mh-index-msg-checksum-map mh-index-checksum-origin-map mh-index-data make-hash-table :test equal gethash mh-index-match-checksum puthash remhash] 15 (#$ . 50851)])
#@95 Check if MSG in FOLDER has X-MHE-Checksum header value of CHECKSUM.

(fn MSG FOLDER CHECKSUM)
(defalias 'mh-index-match-checksum #[771 "\301\302\303\"r\211q\210\304\305\"\216\306\307\310\311\312\313	&\210eb\210\314`\315 \"\230*\207" [mh-scan-prog generate-new-buffer " *temp*" t make-closure #[0 "\301\300!\205	\302\300!\207" [V0 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] 13 (#$ . 51533)])
#@27 Write index data to file.
(defalias 'mh-index-write-data #[0 "\3061a\307=\204\310\311\"\210	\n\f
P\312\211\313\314\315\"\316\317\"\216r\211q\210\320\321\"\210\320\322\"\210\320\322\"\210\323p\"\210\324c\210\323p\"\210\324c)rq\210\325\312\211\312\326%\210*\262*\266\2060\207\210\312\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 (error) mh-folder-mode error "Can't be called from folder in \"%s\"" nil generate-new-buffer " *temp file*" t make-closure #[0 "\301\300!\205	\302\300!\207" [V0 buffer-name kill-buffer] 2] mh-index-write-hashtable #[257 "\300C\301\302\303\"\"\210\211\242\237\207" [nil maphash make-closure #[514 "\300\300\242B\240\207" [V0] 5 "\n\n(fn Y --CL-VAR--)"]] 6 "\n\n(fn X)"] identity pp "\n" write-region 0 buffer-file-name mh-index-data-file print-level print-length] 14 (#$ . 52045)])
#@126 Write TABLE to `current-buffer'.
PROC is used to serialize the values corresponding to the hash
table keys.

(fn TABLE PROC)
(defalias 'mh-index-write-hashtable #[514 "\300\301C\302\303\304$\"\210\211\242\237\262p\"\210\305c\207" [pp nil maphash make-closure #[514 "\302\301\303\300\"!B\302\242B\240\207" [V0 V1 V2 gethash] 8 "\n\n(fn X --CL-VAR--)"] "\n"] 10 (#$ . 52985)])
#@28 Read index data from file.
(defalias 'mh-index-read-data #[0 "\3061X\307=\204\310\311\"\210	\nP\312\211\211\211\211\313\314\315\"r\211q\210\316\317\"\216\320!\210eb\210\321\322!\262\321\323!\262\321\323!\262\324p!\262\324p!\262*\210\211\211\266\2060\207\210\312\207" [major-mode buffer-file-name mh-index-data-file mh-index-data mh-index-msg-checksum-map mh-index-checksum-origin-map (error) mh-folder-mode error "Can't be called from folder in \"%s\"" nil generate-new-buffer " *temp*" t make-closure #[0 "\301\300!\205	\302\300!\207" [V0 buffer-name kill-buffer] 2] insert-file-contents-literally mh-index-read-hashtable #[257 "\300\301\302\"\303:\203@\262\304\305#\210A\262\202\207" [make-hash-table :test equal nil puthash t] 8 "\n\n(fn DATA)"] identity read mh-index-previous-search mh-index-sequence-search-flag] 10 (#$ . 53375)])
#@114 From BUFFER read a hash table serialized as a list.
PROC is used to convert the value to actual data.

(fn PROC)
(defalias 'mh-index-read-hashtable #[257 "\300\301\302\"\303p!\304:\203&@\262\211@\305A!#\266A\262\202\207" [make-hash-table :test equal read nil puthash] 9 (#$ . 54257)])
#@53 Check if a program to create a checksum is present.
(defalias 'mh-checksum-choose #[0 "\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 (#$ . 54564)])
#@22 Parse md5sum output.
(defalias 'mh-md5sum-parser #[0 "\300 \301 \302\211\303\304\305#\262b\210\306\307\305#\262\203-\211\203-\310\311T\"!\311S\"B\207\302C\207" [mh-line-beginning-position mh-line-end-position nil search-forward " " t search-backward "/" string-to-number buffer-substring-no-properties] 8 (#$ . 55055)])
#@23 Parse openssl output.
(defalias 'mh-openssl-parser #[0 "\300 \301 \302\211b\210\303\304\305#\262\303\306\305#\262\211\205-\205-\307\310TS\"!\310T\"B\207" [mh-line-beginning-position mh-line-end-position nil search-backward " " t "/" string-to-number buffer-substring-no-properties] 8 (#$ . 55393)])
(defalias 'mh-md5-parser 'mh-openssl-parser)
#@384 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 hash table 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.

(fn FOLDER &optional ORIGIN-MAP)
(defalias 'mh-index-update-maps #[513 "\306!\210r\307	!q\210\310 \210\311\312\313\"r\211q\210\314\315\"\216\316\n\317\320\321\322\323	\324&\210eb\210\317\211m\204s\325`\326 \"\262\317y\210\212\327\330\"\203ll\203W	q\210\331\317O\332\333\261\210\202l\325`\326 \"\262\334!q\210\335#\266)\317y\210\202,\266*\210m\203o\204\267\336\337\f\"\210eb\210m\204\267
 \211@A\203\260\340\341\342\343\344\345\346&	\210rq\210\335#\210)\317y\266\202\207)\347 \207" [mh-index-msg-checksum-map mh-temp-checksum-buffer mh-scan-prog mh-user-path mh-checksum-cmd mh-checksum-parser clrhash get-buffer-create erase-buffer generate-new-buffer " *temp*" t make-closure #[0 "\301\300!\205	\302\300!\207" [V0 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] 15 (#$ . 55756)])
#@447 Update various maps for one message.
MSG is an index folder message, CHECKSUM its MD5 hash and
ORIGIN-MAP, if non-nil, a hash table 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.

(fn MSG CHECKSUM ORIGIN-MAP)
(defalias 'mh-index-update-single-msg #[771 "\305\"\2033\211\205R\305\"\211@A\306\307\310\211\211\311\312	\n\313\310O$%\210\305\"\2052\314\305\"\"\207\f\315#\266\211\205R\305\"\205R\315\305\"#\262\207" [mh-index-checksum-origin-map mh-user-path mh-current-folder mh-index-data mh-index-msg-checksum-map gethash call-process "rm" nil format "%s%s/%s" 1 remhash puthash] 17 (#$ . 57246)])
(provide 'mh-search)

Youez - 2016 - github.com/yon3zu
LinuXploit