:type 'boolean
:group 'pmail-summary)
-(defconst pmail-summary-header "X-BABYL-V6-SUMMARY"
- "The header that stores the Pmail summary line.")
-
(defvar pmail-summary-font-lock-keywords
'(("^.....D.*" . font-lock-string-face) ; Deleted.
("^.....-.*" . font-lock-type-face) ; Unread.
The current buffer contains the unrestricted message collection."
(let ((beg (pmail-msgbeg msgnum))
- (end (pmail-msgend msgnum))
- result)
+ (end (pmail-msgend msgnum)))
(goto-char beg)
(if (search-forward "\n\n" end t)
(save-restriction
(narrow-to-region beg (point))
;; Generate a status line from the message and put it in the
;; message.
- (setq result (mail-fetch-field pmail-summary-header))
- (unless result
- (setq result (pmail-create-summary msgnum))
- (pmail-add-header pmail-summary-header result)))
- (pmail-error-bad-format msgnum))
- result))
+ (pmail-create-summary msgnum))
+ (pmail-error-bad-format msgnum))))
(defun pmail-get-summary-labels ()
"Return a coded string wrapped in curly braces denoting the status labels.
(define-key pmail-summary-mode-map "n" 'pmail-summary-next-msg)
(define-key pmail-summary-mode-map "\en" 'pmail-summary-next-all)
(define-key pmail-summary-mode-map "\e\C-n" 'pmail-summary-next-labeled-message)
- (define-key pmail-summary-mode-map "o" 'pmail-summary-output-to-pmail-file)
+ (define-key pmail-summary-mode-map "o" 'pmail-summary-output-to-babyl-file)
(define-key pmail-summary-mode-map "\C-o" 'pmail-summary-output)
(define-key pmail-summary-mode-map "p" 'pmail-summary-previous-msg)
(define-key pmail-summary-mode-map "\ep" 'pmail-summary-previous-all)
'("Output (inbox)..." . pmail-summary-output))
(define-key pmail-summary-mode-map [menu-bar classify output]
- '("Output (Pmail)..." . pmail-summary-output-to-pmail-file))
+ '("Output (Pmail)..." . pmail-summary-output-to-babyl-file))
(define-key pmail-summary-mode-map [menu-bar classify kill-label]
'("Kill Label..." . pmail-summary-kill-label))
\f
;; Summary output commands.
-(defun pmail-summary-output-to-pmail-file (&optional file-name n)
+(defun pmail-summary-output-to-babyl-file (&optional file-name n)
"Append the current message to an Pmail file named FILE-NAME.
If the file does not exist, ask if it should be created.
If file is being visited, the message is appended to the Emacs
(setq i (1+ i))
(with-current-buffer pmail-buffer
(let ((pmail-delete-after-output nil))
- (pmail-output-to-pmail-file file-name 1)))
+ (pmail-output-to-babyl-file file-name 1)))
(if pmail-delete-after-output
(pmail-summary-delete-forward nil)
(if (< i n)
(pmail-summary-next-msg 1))))))
+(defalias 'pmail-summary-output-to-pmail-file
+ 'pmail-summary-output-to-babyl-file)
+
(defun pmail-summary-output (&optional file-name n)
"Append this message to Unix mail file named FILE-NAME.
(defun pmail-summary-output-menu ()
"Output current message to another Pmail file, chosen with a menu.
-Also set the default for subsequent \\[pmail-output-to-pmail-file] commands.
+Also set the default for subsequent \\[pmail-output-to-babyl-file] commands.
The variables `pmail-secondary-file-directory' and
`pmail-secondary-file-regexp' control which files are offered in the menu."
(interactive)
(cons "Output Pmail File"
(pmail-list-to-menu "Output Pmail File"
files
- 'pmail-summary-output-to-pmail-file))))
+ 'pmail-summary-output-to-babyl-file))))
(define-key pmail-summary-mode-map [menu-bar classify input-menu]
'("Input Pmail File" . pmail-disable-menu))
(define-key pmail-summary-mode-map [menu-bar classify output-menu]