aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2009-08-01 08:20:17 +0000
committerEli Zaretskii2009-08-01 08:20:17 +0000
commit8f94cbed0924f46ae017a41c6e3fa6ec0c411306 (patch)
tree7b19818a9a6ff84ba2d8d1739484feb67dbaa9fc
parent59d616309d79f0a05956ab799704fce8d826d582 (diff)
downloademacs-8f94cbed0924f46ae017a41c6e3fa6ec0c411306.tar.gz
emacs-8f94cbed0924f46ae017a41c6e3fa6ec0c411306.zip
(rmail-header-summary): Ignore letter-case of month names. (Bug#3987)
-rw-r--r--lisp/mail/rmailsum.el11
1 files changed, 7 insertions, 4 deletions
diff --git a/lisp/mail/rmailsum.el b/lisp/mail/rmailsum.el
index c35e4856f9c..b8175c36f23 100644
--- a/lisp/mail/rmailsum.el
+++ b/lisp/mail/rmailsum.el
@@ -518,16 +518,19 @@ the message being processed."
518 (concat (save-excursion 518 (concat (save-excursion
519 (if (not (re-search-forward "^Date:" nil t)) 519 (if (not (re-search-forward "^Date:" nil t))
520 " " 520 " "
521 (cond ((re-search-forward "\\([^0-9:]\\)\\([0-3]?[0-9]\\)\\([- \t_]+\\)\\([adfjmnos][aceopu][bcglnprtvy]\\)" 521 ;; Match month names case-insensitively
522 (line-end-position) t) 522 (cond ((let ((case-fold-search t))
523 (re-search-forward "\\([^0-9:]\\)\\([0-3]?[0-9]\\)\\([- \t_]+\\)\\([adfjmnos][aceopu][bcglnprtvy]\\)"
524 (line-end-position) t))
523 (format "%2d-%3s" 525 (format "%2d-%3s"
524 (string-to-number (buffer-substring 526 (string-to-number (buffer-substring
525 (match-beginning 2) 527 (match-beginning 2)
526 (match-end 2))) 528 (match-end 2)))
527 (buffer-substring 529 (buffer-substring
528 (match-beginning 4) (match-end 4)))) 530 (match-beginning 4) (match-end 4))))
529 ((re-search-forward "\\([^a-z]\\)\\([adfjmnos][acepou][bcglnprtvy]\\)\\([-a-z \t_]*\\)\\([0-9][0-9]?\\)" 531 ((let ((case-fold-search t))
530 (line-end-position) t) 532 (re-search-forward "\\([^a-z]\\)\\([adfjmnos][acepou][bcglnprtvy]\\)\\([-a-z \t_]*\\)\\([0-9][0-9]?\\)"
533 (line-end-position) t))
531 (format "%2d-%3s" 534 (format "%2d-%3s"
532 (string-to-number (buffer-substring 535 (string-to-number (buffer-substring
533 (match-beginning 4) 536 (match-beginning 4)