| 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 : |
;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!!\203K q\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\2035 db\210\2028 eb\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<