4.3BSD-Reno/contrib/lib/emacs/lisp/mh-e.elc
(defvar mh-e-RCS-id)
(setq mh-e-RCS-id "$Header: mh-e.el,v 2.24 88/08/29 12:07:53 larus Exp $")
(provide (quote mh-e))
(defvar mh-redist-full-contents t "\
Non-nil if the `dist' command needs whole letter for redistribution (i.e.,
when `send' is compiled with the BERK option). Nil otherwise.")
(defvar mh-folder-mode-hook nil "\
*Invoked in mh-folder-mode on a new folder.")
(defvar mh-letter-mode-hook nil "\
*Invoked in mh-letter-mode on a new letter.")
(defvar mh-compose-letter-hook nil "\
*Invoked in mh-compose-and-send-mail on an outgoing letter. It is passed
three arguments: TO recipients, SUBJECT, and CC recipients.")
(defvar mh-inc-folder-hook nil "\
*Invoked after incorporating new mail into a folder.")
(defvar mh-clean-message-header nil "\
*Non-nil means remove invisible header lines or only show visible header
lines in messages.")
(defvar mh-visible-headers nil "\
*If non-nil, it contains a regexp specifying the headers that are shown in
a message if mh-clean-message-header is non-nil. Setting this variable
overrides mh-invisible-headers.")
(defvar mhl-formfile nil "\
*Name of format file to be used by mhl to show messages.
A value of T means use the default format file.
Nil means don't use mhl to format messages.")
(defvar mh-lpr-command-format "lpr -p -J '%s'" "\
*Format for Unix command line to print a message. The format should be
a unix command line, with the string \"%s\" where the folder and message
number should appear.")
(defvar mh-print-background nil "\
*Print messages in the background if non-nil. WARNING: do not delete
the messages until printing is finished; otherwise, your output may be
truncated.")
(defvar mh-summary-height 4 "\
*Number of lines in summary window.")
(defvar mh-recenter-summary-p nil "\
*Recenter summary window when the show window is toggled off if
this is non-nil.")
(defvar mh-ins-buf-prefix ">> " "\
*String to put before each non-blank line of the the current message
as it is inserted in an outgoing letter.")
(defvar mh-do-not-confirm nil "\
*Non-nil means do not prompt for confirmation before executing some
innocuous commands.")
(defvar mh-bury-show-buffer t "\
*Non-nil means that the displayed show buffer for a folder is buried.")
(defvar mh-delete-yanked-msg-window nil "\
*If non-nil, yanking the current message into a letter being composed,
with \\[mh-yank-cur-msg], deletes any windows displaying the message.")
(defvar mh-yank-from-start-of-msg t "\
*If non-nil, \\[mh-yank-cur-msg] will include the entire message. If
`body' then the message minus the header will be yanked. If nil, only the
portion of the message following the point will be yanked. If there is a
region in the show buffer, this variable is ignored.")
(defvar mh-reply-default-reply-to nil "\
*If non-nil, then \\[mh-reply] will use this as the person or persons to
which the reply will be sent. The value should be one of \"from\", \"to\", or
\"cc\".")
(defvar mh-recursive-folders nil "\
*If non-nil, then commands which operate on folders do so recursively.")
(defvar mh-cmd-note 4 "\
Offset to insert notation")
(defvar mh-good-msg-regexp "^....[^D^]" "\
Regexp specifiying the scan lines that are 'good' messages.")
(defvar mh-deleted-msg-regexp "^....D" "\
Regexp matching scan lines of deleted messages.")
(defvar mh-refiled-msg-regexp "^....\\^" "\
Regexp matching scan lines of refiled messages.")
(defvar mh-valid-scan-line "^[ ]*[0-9]" "\
Regexp matching scan lines for messages (not error messages).")
(defvar mh-msg-number-regexp "^[ ]*\\([0-9]+\\)" "\
Regexp matching the number of a message in a scan line. It must surround
the number with \\( \\)")
(defvar mh-msg-search-regexp "^[^0-9]*%d[^0-9]" "\
String for format that will return a regexp matching the scan listing for
a given message number.")
(defvar mh-flagged-scan-msg-regexp "^....\\D\\|^....\\^\\|^....\\+\\|^.....%" "\
Regexp matching scan lines marked as deleted, refiled, in a sequence, or
the cur message.")
(defvar mh-cur-scan-msg-regexp "^....\\+" "\
regexp matching scan line for the cur message.")
(defvar mh-invisible-headers "^Received: \\|^Message-Id: \\|^Remailed-\\|^Via: \\|^Mail-from: \\|^Return-Path: \\|^In-Reply-To: \\|^Resent-" "\
Regexp specifying headers that are not to be shown.")
(defvar mh-rejected-letter-start "^ ----- Unsent message follows -----$" "\
Regexp specifying the beginning of the wrapper around a letter returned
by the mail system.")
(defvar mh-to-field-choices (quote ((116 . "To:") (115 . "Subject:") (99 . "Cc:") (98 . "Bcc:") (102 . "Fcc:"))) "\
A-list of (character . field name) strings for mh-to-field.")
(defvar mh-user-path "" "\
User's mail folder.")
(defvar mh-last-destination nil "\
Destination of last `refile' command.")
(defvar mh-folder-mode-map (make-keymap) "\
Keymap for MH folders.")
(defvar mh-letter-mode-map (make-sparse-keymap) "\
Keymap for composing mail.")
(defvar mh-pick-mode-map (make-sparse-keymap) "\
Keymap for searching folder.")
(defvar mh-letter-mode-syntax-table nil "\
Syntax table used while in mh-e letter mode.")
(if mh-letter-mode-syntax-table nil (setq mh-letter-mode-syntax-table (make-syntax-table text-mode-syntax-table)) (set-syntax-table mh-letter-mode-syntax-table) (modify-syntax-entry 37 "." mh-letter-mode-syntax-table))
(defvar mh-folder-list nil "\
List of folder names for completion.")
(defvar mh-draft-folder nil "\
Name of folder containing draft messages.
NIL means do not use draft folder.")
(defvar mh-unseen-seq nil "\
Name of the unseen sequence.")
(defmacro mh-push (v l) (byte-code " EE" [l v setq cons] 5))
(defmacro when (pred &rest body) (byte-code " BD" [pred body cond] 3))
(defun mapc (func list) (byte-code " @\"A " [list func funcall] 4))
(defun mh-list* (&rest args) (byte-code "!" [args mh-make-list*] 2))
(defun mh-make-list* (arglist) (byte-code "? A? @ @A!B" [arglist nil t mh-make-list*] 3))
(defun mh-rmail (&optional arg) "\
Inc(orporate) new mail (no arg) or scan a MH mail box (arg given).
This front end uses the MH mail system, which uses different conventions
from the usual mail system." (interactive "P") (byte-code " ! " [arg nil mh-find-path call-interactively mh-visit-folder mh-inc-folder] 4))
(defun mh-smail nil "\
Send mail using the MH mail system." (interactive) (byte-code " !" [nil mh-find-path call-interactively mh-send] 3))
(defun mh-smail-other-window nil "\
Send mail in other window using the MH mail system." (interactive) (byte-code " !" [nil mh-find-path call-interactively mh-send-other-window] 3))
(defun mh-burst-digest nil "\
Burst apart the current message, which should be a digest. Message is
replaced by its table of contents and the letters from the digest are inserted
into the folder after that message." (interactive) (byte-code "Ĉ!
!!
$
\"\"!)" [digest t mh-current-folder mh-first-msg-num nil mh-get-msg-num mh-process-or-undo-commands message "Bursting digest..." mh-exec-cmd "burst" "-inplace" mh-scan-folder format "%d-last" "Bursting digest...done"] 9))
(defun mh-copy-msg (prefix-provided msg-or-seq dest) "\
Copy specified MESSAGE(s) (default: displayed message) to another
FOLDER without deleting them.
If (optional) prefix argument provided, then prompt for the message sequence." (interactive (byte-code "
# !#E" [current-prefix-arg t mh-narrowed-to-seq mh-read-seq "Copy" mh-get-msg-num mh-prompt-for-folder "Copy to" ""] 8)) (byte-code "Ȉ
& # #" [current-prefix-arg t mh-narrowed-to-seq msg-or-seq mh-current-folder dest prefix-provided mh-cmd-note nil mh-exec-cmd "refile" "-link" "-src" mh-notate-seq 67 mh-notate] 7))
(defun mh-delete-msg (prefix-provided msg-or-seq) "\
Mark the specified MESSAGE(s) (default: displayed message) for later
deletion.
If (optional) prefix argument provided, then prompt for the message sequence." (interactive (byte-code "
# !D" [current-prefix-arg t mh-narrowed-to-seq mh-read-seq "Delete" mh-get-msg-num] 5)) (byte-code "ň
\" ! " [current-prefix-arg t mh-narrowed-to-seq prefix-provided msg-or-seq nil mh-map-to-seq-msgs mh-delete-a-msg mh-next-msg] 4))
(defun mh-delete-msg-from-seq (prefix-provided msg-or-seq &optional from-seq) "\
Delete MESSAGE (default: displayed message) from SEQUENCE.
If (optional) prefix argument provided, then delete all messages from a
sequence." (interactive (byte-code " # !? #E)" [argp current-prefix-arg t mh-narrowed-to-seq mh-read-seq "Delete" mh-get-msg-num "Delete from"] 8)) (byte-code "Lj
!
\"" [argp current-prefix-arg t mh-narrowed-to-seq prefix-provided msg-or-seq from-seq nil mh-remove-seq mh-remove-msg-from-seq] 4))
(defun mh-edit-again (msg) "\
Clean-up a draft or a message previously sent and make it resendable." (interactive (byte-code "!C" [t mh-get-msg-num] 2)) (byte-code "Lj
\"&