aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2009-01-10 21:07:18 +0000
committerRichard M. Stallman2009-01-10 21:07:18 +0000
commit29b51c384ba9e924be51f930f4b4e698991b77c4 (patch)
treedf508e86a4da929a1e6771bdc94c9aefde91b0d3
parent717c97e586904ec72e48eb2b76fcdbd505805a14 (diff)
downloademacs-29b51c384ba9e924be51f930f4b4e698991b77c4.tar.gz
emacs-29b51c384ba9e924be51f930f4b4e698991b77c4.zip
(pmail-ignored-headers): Hide more fields.
(pmail-next-undeleted-message): If we stay on same message, don't change anything.
-rw-r--r--lisp/mail/pmail.el23
1 files changed, 12 insertions, 11 deletions
diff --git a/lisp/mail/pmail.el b/lisp/mail/pmail.el
index 6f351344398..8db50cda807 100644
--- a/lisp/mail/pmail.el
+++ b/lisp/mail/pmail.el
@@ -61,17 +61,17 @@ advice is temporarily used by pmail until a satisfactory solution
61can be written." 61can be written."
62 (if (not buffer-swapped-with) 62 (if (not buffer-swapped-with)
63 (progn 63 (progn
64;; (if (and (string= "PMAIL" (buffer-name)) 64;;; (if (and (string= "PMAIL" (buffer-name))
65;; (< (buffer-size) 1000000)) 65;;; (< (buffer-size) 1000000))
66;; (debug)) 66;;; (debug))
67 ad-do-it) 67 ad-do-it)
68 (unwind-protect 68 (unwind-protect
69 (let ((modp (buffer-modified-p))) 69 (let ((modp (buffer-modified-p)))
70;; (save-match-data 70;;; (save-match-data
71;; (let ((case-fold-search nil)) 71;;; (let ((case-fold-search nil))
72;; (unless (or (string-match "PMAIL" (buffer-name)) 72;;; (unless (or (string-match "PMAIL" (buffer-name))
73;; (string-match "xmail" (buffer-name))) 73;;; (string-match "xmail" (buffer-name)))
74;; (debug)))) 74;;; (debug))))
75 (buffer-swap-text buffer-swapped-with) 75 (buffer-swap-text buffer-swapped-with)
76 (set-buffer-modified-p modp) 76 (set-buffer-modified-p modp)
77 ad-do-it) 77 ad-do-it)
@@ -375,11 +375,13 @@ It is useful to set this variable in the site customization file.")
375 "\\|^x-mailer:\\|^delivered-to:\\|^lines:" 375 "\\|^x-mailer:\\|^delivered-to:\\|^lines:"
376 "\\|^content-transfer-encoding:\\|^x-coding-system:" 376 "\\|^content-transfer-encoding:\\|^x-coding-system:"
377 "\\|^return-path:\\|^errors-to:\\|^return-receipt-to:" 377 "\\|^return-path:\\|^errors-to:\\|^return-receipt-to:"
378 "\\|^precedence:\\|^list-help:\\|^list-post:\\|^list-subscribe:" 378 "\\|^precedence:\\|^mime-version:"
379 "\\|^list-owner:\\|^list-help:\\|^list-post:\\|^list-subscribe:"
379 "\\|^list-id:\\|^list-unsubscribe:\\|^list-archive:" 380 "\\|^list-id:\\|^list-unsubscribe:\\|^list-archive:"
380 "\\|^content-length:\\|^nntp-posting-date:\\|^user-agent" 381 "\\|^content-length:\\|^nntp-posting-date:\\|^user-agent"
381 "\\|^importance:\\|^envelope-to:\\|^delivery-date\\|^openpgp:" 382 "\\|^importance:\\|^envelope-to:\\|^delivery-date\\|^openpgp:"
382 "\\|^mbox-line:\\|^cancel-lock:\\|^DomainKey-Signature:" 383 "\\|^mbox-line:\\|^cancel-lock:"
384 "\\|^DomainKey-Signature:\\|^dkim-signature:"
383 "\\|^resent-face:\\|^resent-x.*:\\|^resent-organization:\\|^resent-openpgp:" 385 "\\|^resent-face:\\|^resent-x.*:\\|^resent-organization:\\|^resent-openpgp:"
384 "\\|^x-.*:") 386 "\\|^x-.*:")
385 "*Regexp to match header fields that Pmail should normally hide. 387 "*Regexp to match header fields that Pmail should normally hide.
@@ -2800,7 +2802,6 @@ Returns t if a new message is being shown, nil otherwise."
2800 (message "No previous nondeleted message")) 2802 (message "No previous nondeleted message"))
2801 (if (> n 0) 2803 (if (> n 0)
2802 (message "No following nondeleted message")) 2804 (message "No following nondeleted message"))
2803 (pmail-show-message-maybe pmail-current-message)
2804 nil))) 2805 nil)))
2805 2806
2806(defun pmail-previous-undeleted-message (n) 2807(defun pmail-previous-undeleted-message (n)