aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/mail/rmail.el56
1 files changed, 28 insertions, 28 deletions
diff --git a/lisp/mail/rmail.el b/lisp/mail/rmail.el
index 18edb1d6b18..81da56a6f82 100644
--- a/lisp/mail/rmail.el
+++ b/lisp/mail/rmail.el
@@ -315,7 +315,7 @@ examples:
315 :group 'rmail 315 :group 'rmail
316 :version "21.1" 316 :version "21.1"
317 :type '(repeat (sexp :tag "Directive"))) 317 :type '(repeat (sexp :tag "Directive")))
318 318
319(defvar rmail-reply-prefix "Re: " 319(defvar rmail-reply-prefix "Re: "
320 "String to prepend to Subject line when replying to a message.") 320 "String to prepend to Subject line when replying to a message.")
321 321
@@ -432,7 +432,7 @@ It is called with no argument.")
432;;;###autoload 432;;;###autoload
433(defvar rmail-insert-mime-forwarded-message-function nil 433(defvar rmail-insert-mime-forwarded-message-function nil
434 "Function to insert a message in MIME format so it can be forwarded. 434 "Function to insert a message in MIME format so it can be forwarded.
435This function is called if `rmail-enable-mime' or 435This function is called if `rmail-enable-mime' or
436`rmail-enable-mime-composing' is non-nil. 436`rmail-enable-mime-composing' is non-nil.
437It is called with one argument FORWARD-BUFFER, which is a 437It is called with one argument FORWARD-BUFFER, which is a
438buffer containing the message to forward. The current buffer 438buffer containing the message to forward. The current buffer
@@ -546,7 +546,7 @@ The first parenthesized expression should match the MIME-charset name.")
546 (let* ((cite-chars "[>|}]") 546 (let* ((cite-chars "[>|}]")
547 (cite-prefix "A-Za-z") 547 (cite-prefix "A-Za-z")
548 (cite-suffix (concat cite-prefix "0-9_.@-`'\""))) 548 (cite-suffix (concat cite-prefix "0-9_.@-`'\"")))
549 (list '("^\\(From\\|Sender\\):" . font-lock-function-name-face) 549 (list '("^\\(From\\|Sender\\|Resent-[Ff]rom\\):" . font-lock-function-name-face)
550 '("^Reply-To:.*$" . font-lock-function-name-face) 550 '("^Reply-To:.*$" . font-lock-function-name-face)
551 '("^Subject:" . font-lock-comment-face) 551 '("^Subject:" . font-lock-comment-face)
552 '("^\\(To\\|Apparently-To\\|Cc\\|Newsgroups\\):" 552 '("^\\(To\\|Apparently-To\\|Cc\\|Newsgroups\\):"
@@ -632,7 +632,7 @@ If `rmail-display-summary' is non-nil, make a summary for this RMAIL file."
632 ;; need code conversion while the buffer is unibyte 632 ;; need code conversion while the buffer is unibyte
633 ;; (i.e. enable-multibyte-characters is nil). 633 ;; (i.e. enable-multibyte-characters is nil).
634 (rmail-enable-multibyte 634 (rmail-enable-multibyte
635 (if existed 635 (if existed
636 (with-current-buffer existed enable-multibyte-characters) 636 (with-current-buffer existed enable-multibyte-characters)
637 (default-value 'enable-multibyte-characters))) 637 (default-value 'enable-multibyte-characters)))
638 ;; Since the file may contain messages of different encodings 638 ;; Since the file may contain messages of different encodings
@@ -657,7 +657,7 @@ If `rmail-display-summary' is non-nil, make a summary for this RMAIL file."
657 (eq major-mode 'rmail-mode)) 657 (eq major-mode 'rmail-mode))
658 (progn (rmail-forget-messages) 658 (progn (rmail-forget-messages)
659 (rmail-set-message-counters)))) 659 (rmail-set-message-counters))))
660 (switch-to-buffer 660 (switch-to-buffer
661 (let ((enable-local-variables nil)) 661 (let ((enable-local-variables nil))
662 (find-file-noselect file-name)))) 662 (find-file-noselect file-name))))
663 (if (eq major-mode 'rmail-edit-mode) 663 (if (eq major-mode 'rmail-edit-mode)
@@ -1269,8 +1269,8 @@ original copy."
1269 (if (consp item) 1269 (if (consp item)
1270 (progn 1270 (progn
1271 (setq command 1271 (setq command
1272 (rmail-list-to-menu (car item) (cdr item) 1272 (rmail-list-to-menu (car item) (cdr item)
1273 action 1273 action
1274 (if full-name 1274 (if full-name
1275 (concat full-name "/" 1275 (concat full-name "/"
1276 (car item)) 1276 (car item))
@@ -1278,10 +1278,10 @@ original copy."
1278 (setq name (car item))) 1278 (setq name (car item)))
1279 (progn 1279 (progn
1280 (setq name item) 1280 (setq name item)
1281 (setq command 1281 (setq command
1282 (list 'lambda () '(interactive) 1282 (list 'lambda () '(interactive)
1283 (list action 1283 (list action
1284 (expand-file-name 1284 (expand-file-name
1285 (if full-name 1285 (if full-name
1286 (concat full-name "/" item) 1286 (concat full-name "/" item)
1287 item) 1287 item)
@@ -1290,7 +1290,7 @@ original copy."
1290 (cons name command))))) 1290 (cons name command)))))
1291 (reverse l)) 1291 (reverse l))
1292 menu)) 1292 menu))
1293 1293
1294;; This command is always "disabled" when it appears in a menu. 1294;; This command is always "disabled" when it appears in a menu.
1295(put 'rmail-disable-menu 'menu-enable ''nil) 1295(put 'rmail-disable-menu 'menu-enable ''nil)
1296 1296
@@ -1299,13 +1299,13 @@ original copy."
1299 (if files 1299 (if files
1300 (progn 1300 (progn
1301 (define-key rmail-mode-map [menu-bar classify input-menu] 1301 (define-key rmail-mode-map [menu-bar classify input-menu]
1302 (cons "Input Rmail File" 1302 (cons "Input Rmail File"
1303 (rmail-list-to-menu "Input Rmail File" 1303 (rmail-list-to-menu "Input Rmail File"
1304 files 1304 files
1305 'rmail-input))) 1305 'rmail-input)))
1306 (define-key rmail-mode-map [menu-bar classify output-menu] 1306 (define-key rmail-mode-map [menu-bar classify output-menu]
1307 (cons "Output Rmail File" 1307 (cons "Output Rmail File"
1308 (rmail-list-to-menu "Output Rmail File" 1308 (rmail-list-to-menu "Output Rmail File"
1309 files 1309 files
1310 'rmail-output-to-rmail-file)))) 1310 'rmail-output-to-rmail-file))))
1311 1311
@@ -1548,13 +1548,13 @@ It returns t if it got any new messages."
1548 (save-excursion 1548 (save-excursion
1549 (setq errors (generate-new-buffer " *rmail loss*")) 1549 (setq errors (generate-new-buffer " *rmail loss*"))
1550 (buffer-disable-undo errors) 1550 (buffer-disable-undo errors)
1551 (let ((args 1551 (let ((args
1552 (append 1552 (append
1553 (list (or rmail-movemail-program 1553 (list (or rmail-movemail-program
1554 (expand-file-name "movemail" 1554 (expand-file-name "movemail"
1555 exec-directory)) 1555 exec-directory))
1556 nil errors nil) 1556 nil errors nil)
1557 (if rmail-preserve-inbox 1557 (if rmail-preserve-inbox
1558 (list "-p") 1558 (list "-p")
1559 nil) 1559 nil)
1560 rmail-movemail-flags 1560 rmail-movemail-flags
@@ -1869,7 +1869,7 @@ It returns t if it got any new messages."
1869 "" 1869 ""
1870 (concat 1870 (concat
1871 "Date: \\2, \\4 \\3 \\9 \\5 " 1871 "Date: \\2, \\4 \\3 \\9 \\5 "
1872 1872
1873 ;; The timezone could be matched by group 7 or group 10. 1873 ;; The timezone could be matched by group 7 or group 10.
1874 ;; If neither of them matched, assume EST, since only 1874 ;; If neither of them matched, assume EST, since only
1875 ;; Easterners would be so sloppy. 1875 ;; Easterners would be so sloppy.
@@ -2312,7 +2312,7 @@ change the invisible header text."
2312 (aset rmail-msgref-vector i (list i)) 2312 (aset rmail-msgref-vector i (list i))
2313 (setq i (1+ i)))) 2313 (setq i (1+ i))))
2314 (message "Counting messages...done"))))) 2314 (message "Counting messages...done")))))
2315 2315
2316(defun rmail-set-message-counters-counter (&optional stop) 2316(defun rmail-set-message-counters-counter (&optional stop)
2317 (let ((start (point)) 2317 (let ((start (point))
2318 next) 2318 next)
@@ -2588,7 +2588,7 @@ With prefix arg N, moves forward N messages, or backward if N is negative."
2588 "Show previous message whether deleted or not. 2588 "Show previous message whether deleted or not.
2589With prefix arg N, moves backward N messages, or forward if N is negative." 2589With prefix arg N, moves backward N messages, or forward if N is negative."
2590 (interactive "p") 2590 (interactive "p")
2591 (rmail-next-message (- n))) 2591 (rmail-next-message (- n)))
2592 2592
2593(defun rmail-next-undeleted-message (n) 2593(defun rmail-next-undeleted-message (n)
2594 "Show following non-deleted message. 2594 "Show following non-deleted message.
@@ -2675,7 +2675,7 @@ or forward if N is negative."
2675 (forward-line 1)) 2675 (forward-line 1))
2676 (setq beg (point)) 2676 (setq beg (point))
2677 (narrow-to-region (point) end)) 2677 (narrow-to-region (point) end))
2678 (progn 2678 (progn
2679 (rfc822-goto-eoh) 2679 (rfc822-goto-eoh)
2680 (setq end (point))) 2680 (setq end (point)))
2681 (setq beg (point)) 2681 (setq beg (point))
@@ -3419,14 +3419,14 @@ specifying headers which should not be copied into the new message."
3419 (save-excursion 3419 (save-excursion
3420 (goto-char (point-min)) 3420 (goto-char (point-min))
3421 (let ((case-fold-search t)) 3421 (let ((case-fold-search t))
3422 (if (and content-type 3422 (if (and content-type
3423 (string-match 3423 (string-match
3424 ";[\n\t ]*boundary=\"?\\([-0-9a-z'()+_,./:=? ]+\\)\"?" 3424 ";[\n\t ]*boundary=\"?\\([-0-9a-z'()+_,./:=? ]+\\)\"?"
3425 content-type)) 3425 content-type))
3426 ;; Handle a MIME multipart bounce message. 3426 ;; Handle a MIME multipart bounce message.
3427 (let ((codestring 3427 (let ((codestring
3428 (concat "\n--" 3428 (concat "\n--"
3429 (substring content-type (match-beginning 1) 3429 (substring content-type (match-beginning 1)
3430 (match-end 1))))) 3430 (match-end 1)))))
3431 (unless (re-search-forward mail-mime-unsent-header nil t) 3431 (unless (re-search-forward mail-mime-unsent-header nil t)
3432 (error "Cannot find beginning of header in failed message")) 3432 (error "Cannot find beginning of header in failed message"))
@@ -3547,7 +3547,7 @@ This has an effect only if a summary buffer exists."
3547 (setq window (get-buffer-window rmail-summary-buffer)) 3547 (setq window (get-buffer-window rmail-summary-buffer))
3548 ;; Don't try to change the size if just one window in frame. 3548 ;; Don't try to change the size if just one window in frame.
3549 (not (eq window (frame-root-window (window-frame window)))) 3549 (not (eq window (frame-root-window (window-frame window))))
3550 (unwind-protect 3550 (unwind-protect
3551 (progn 3551 (progn
3552 (select-window window) 3552 (select-window window)
3553 (enlarge-window (- rmail-summary-window-size (window-height)))) 3553 (enlarge-window (- rmail-summary-window-size (window-height))))
@@ -3706,7 +3706,7 @@ TEXT and INDENT are not used."
3706 "Set PASSWORD to be used for retrieving mail from a POP server." 3706 "Set PASSWORD to be used for retrieving mail from a POP server."
3707 (interactive "sPassword: ") 3707 (interactive "sPassword: ")
3708 (if password 3708 (if password
3709 (setq rmail-encoded-pop-password 3709 (setq rmail-encoded-pop-password
3710 (rmail-encode-string password (emacs-pid))) 3710 (rmail-encode-string password (emacs-pid)))
3711 (setq rmail-pop-password nil) 3711 (setq rmail-pop-password nil)
3712 (setq rmail-encoded-pop-password nil))) 3712 (setq rmail-encoded-pop-password nil)))
@@ -3732,7 +3732,7 @@ restarting at the lowest byte of the mask whenever it runs out.
3732Returns the encoded string. Calling the function again with an 3732Returns the encoded string. Calling the function again with an
3733encoded string (and the same mask) will decode the string." 3733encoded string (and the same mask) will decode the string."
3734 (setq mask (abs mask)) ; doesn't work if negative 3734 (setq mask (abs mask)) ; doesn't work if negative
3735 (let* ((string-vector (string-to-vector string)) (i 0) 3735 (let* ((string-vector (string-to-vector string)) (i 0)
3736 (len (length string-vector)) (curmask mask) charmask) 3736 (len (length string-vector)) (curmask mask) charmask)
3737 (while (< i len) 3737 (while (< i len)
3738 (if (= curmask 0) 3738 (if (= curmask 0)